Class: Cukunity::CLI::BootstrapCommand

Inherits:
Object
  • Object
show all
Defined in:
lib/cukunity/cli/bootstrap_command.rb

Instance Method Summary collapse

Constructor Details

#initialize(parser) ⇒ BootstrapCommand

Returns a new instance of BootstrapCommand.



7
8
9
# File 'lib/cukunity/cli/bootstrap_command.rb', line 7

def initialize(parser)
  @parser = parser 
end

Instance Method Details

#executeObject



11
12
13
14
15
16
17
# File 'lib/cukunity/cli/bootstrap_command.rb', line 11

def execute
  path = @parser.remaining_args.first
  if path.nil?
    abort 'You should specify the path to the base of your Unity project.'
  end
  bootstrap_unity(File.expand_path(path))
end