Class: Dip::CLI::SSH
- Inherits:
-
Thor
- Object
- Thor
- Dip::CLI::SSH
- Defined in:
- lib/dip/cli/ssh.rb
Instance Method Summary collapse
Instance Method Details
#down ⇒ Object
38 39 40 41 42 43 44 |
# File 'lib/dip/cli/ssh.rb', line 38 def down if [:help] invoke :help, ['down'] else Dip::Commands::SSH::Down.new.execute end end |
#restart(*args) ⇒ Object
49 50 51 52 53 54 55 56 57 |
# File 'lib/dip/cli/ssh.rb', line 49 def restart(*args) if [:help] invoke :help, ['restart'] else Dip::CLI::SSH.start(["down"] + args) sleep 1 Dip::CLI::SSH.start(["up"] + args) end end |