Class: SmartMachine::Commands::CLI
- Inherits:
-
Thor
- Object
- Thor
- SmartMachine::Commands::CLI
- Includes:
- Utilities
- Defined in:
- lib/smart_machine/commands.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.exit_on_failure? ⇒ Boolean
20 21 22 |
# File 'lib/smart_machine/commands.rb', line 20 def self.exit_on_failure? true end |
Instance Method Details
#new(name) ⇒ Object
26 27 28 29 30 31 |
# File 'lib/smart_machine/commands.rb', line 26 def new(name) raise "Can't create a machine inside a machine. Please come out of the machine directory to create another machine." if in_machine_dir? machine = SmartMachine::Machine.new machine.create(name: name, dev: [:dev]) end |
#version ⇒ Object
35 36 37 |
# File 'lib/smart_machine/commands.rb', line 35 def version puts "SmartMachine #{SmartMachine.version}" end |