Class: SmartMachine::Commands::Machine
- Inherits:
-
Thor
- Object
- Thor
- SmartMachine::Commands::Machine
- Includes:
- Utilities
- Defined in:
- lib/smart_machine/commands/machine.rb
Instance Method Summary collapse
Instance Method Details
#runner(*args) ⇒ Object
27 28 29 30 31 32 |
# File 'lib/smart_machine/commands/machine.rb', line 27 def runner(*args) inside_machine_dir do machine = SmartMachine::Machine.new machine.run_on_machine(commands: "#{args.join(' ')}") end end |
#setup ⇒ Object
10 11 12 13 14 15 |
# File 'lib/smart_machine/commands/machine.rb', line 10 def setup inside_machine_dir do machine = SmartMachine::Machine.new machine.setup end end |
#ssh ⇒ Object
18 19 20 21 22 23 |
# File 'lib/smart_machine/commands/machine.rb', line 18 def ssh inside_machine_dir do ssh = SmartMachine::SSH.new ssh.login end end |