Class: Dip::CLI::SSH
Instance Method Summary collapse
Methods inherited from Base
Instance Method Details
#down ⇒ Object
42 43 44 45 46 47 48 |
# File 'lib/dip/cli/ssh.rb', line 42 def down if [:help] invoke :help, ["down"] else Dip::Commands::SSH::Down.new.execute end end |
#restart(*args) ⇒ Object
53 54 55 56 57 58 59 60 61 |
# File 'lib/dip/cli/ssh.rb', line 53 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 |