Class: Dip::Commands::SSH::Down

Inherits:
Dip::Command show all
Defined in:
lib/dip/commands/ssh.rb

Instance Method Summary collapse

Methods inherited from Dip::Command

shell, subshell

Instance Method Details

#executeObject



38
39
40
41
42
# File 'lib/dip/commands/ssh.rb', line 38

def execute
  subshell("docker", "stop ssh-agent".shellsplit, panic: false, out: File::NULL, err: File::NULL)
  subshell("docker", "rm -v ssh-agent".shellsplit, panic: false, out: File::NULL, err: File::NULL)
  subshell("docker", "volume rm ssh_data".shellsplit, panic: false, out: File::NULL, err: File::NULL)
end