Class: Hem::Lib::Vm::ReverseCommand

Inherits:
Command
  • Object
show all
Defined in:
lib/hem/lib/vm/ReverseCommand.rb

Overview

Place the ssh configuration within a command, using sprintf

Instance Method Summary collapse

Instance Method Details

#to_sObject



12
13
14
15
16
17
18
19
20
21
22
# File 'lib/hem/lib/vm/ReverseCommand.rb', line 12

def to_s
  ssh_config = ssh_config()
  ssh_command = ssh_command(ssh_config)
  pwd_set_command = pwd_set_command()
  vm_command = vm_command()

  [
    @pipe,
    full_command(pwd_set_command, vm_command, ssh_command)
  ].compact.join(' | ')
end