class Dip::CLI::SSH
Public Instance Methods
down()
click to toggle source
# File lib/dip/cli/ssh.rb, line 42 def down if options[:help] invoke :help, ["down"] else Dip::Commands::SSH::Down.new.execute end end
restart(*args)
click to toggle source
# File lib/dip/cli/ssh.rb, line 53 def restart(*args) if options[:help] invoke :help, ["restart"] else Dip::CLI::SSH.start(["down"] + args) sleep 1 Dip::CLI::SSH.start(["up"] + args) end end
status()
click to toggle source
# File lib/dip/cli/ssh.rb, line 66 def status if options[:help] invoke :help, ["status"] else Dip::Commands::SSH::Status.new.execute end end
up()
click to toggle source
# File lib/dip/cli/ssh.rb, line 24 def up if options[:help] invoke :help, ["up"] else Dip::Commands::SSH::Up.new( key: options.fetch(:key), volume: options.fetch(:volume), interactive: options.nonteractive? ? false : options.interactive?, user: options.user ).execute end end