Class: Cukunity::CLI::BootstrapCommand
- Inherits:
-
Object
- Object
- Cukunity::CLI::BootstrapCommand
- Defined in:
- lib/cukunity/cli/bootstrap_command.rb
Instance Method Summary collapse
- #execute ⇒ Object
-
#initialize(parser) ⇒ BootstrapCommand
constructor
A new instance of BootstrapCommand.
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
#execute ⇒ Object
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.(path)) end |