Class: Phase::SSH::Command
- Inherits:
-
SSHKit::Command
- Object
- SSHKit::Command
- Phase::SSH::Command
- 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 [:remote_host] "ssh #{ [:remote_host] } -- %s" % yield end |
#to_command ⇒ Object
10 11 12 |
# File 'lib/phase/kit/ssh/command.rb', line 10 def to_command on_remote_host { super } end |