Parent

TyrantManager::Commands::CreateInstance

Create a new Tyrant instance

Public Class Methods

command_name() click to toggle source

(Not documented)

# File lib/tyrant_manager/commands/create_instance.rb, line 9
      def self.command_name
      'create-instance'
      end

Public Instance Methods

run() click to toggle source

(Not documented)

# File lib/tyrant_manager/commands/create_instance.rb, line 13
      def run
        path = Pathname.new( options['instance-home'] )
        unless path.absolute? then
          path = Pathname.new( manager.instances_path ) + path
        end

        unless path.exist? then
          logger.info "Creating instance directory #{path}"
          TyrantManager::TyrantInstance.setup( path.to_s )
        end
        tt = TyrantManager::TyrantInstance.new( path.to_s )
      end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.