Class: Phase::SSH::Command

Inherits:
SSHKit::Command
  • Object
show all
Defined in:
lib/phase/kit/ssh/command.rb

Instance Method Summary collapse

Instance Method Details

#on_remote_host(&block) ⇒ Object



5
6
7
8
# File 'lib/phase/kit/ssh/command.rb', line 5

def on_remote_host(&block)
  return yield unless options[:remote_host]
  "ssh #{ options[:remote_host] } -- %s" % yield
end

#to_commandObject



10
11
12
# File 'lib/phase/kit/ssh/command.rb', line 10

def to_command
  on_remote_host { super }
end