Sha256: 3aac48193ecc9467ecb83553a12e44ce60a900776d239cb44ce90ebf2cb22e52
Contents?: true
Size: 488 Bytes
Versions: 1
Compression:
Stored size: 488 Bytes
Contents
module SSHKit module Backend class SshCommand < Printer def run instance_exec(host, &@block) end def within(directory, &block) (@pwd ||= []).push directory.to_s yield ensure @pwd.pop end def execute(*args, &block) result = 'ssh %s@%s -t "%s"' % [host.username, String(host.hostname), command(*args).to_command] output << Command.new(result) system(result) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
j-cap-recipes-0.0.15 | lib/sshkit/backends/ssh_command.rb |