Sha256: ba77a0d0a81ff15fabb9f28eb9164fe77847811061c7d9bb4648fbf228568100
Contents?: true
Size: 560 Bytes
Versions: 1
Compression:
Stored size: 560 Bytes
Contents
module RbbtSSH def self.ssh(server, argv = nil, options = {}) server = server.sub(%r(^ssh:(//)?), '') argv = [] if argv.nil? argv = [argv] unless Array === argv options = Misc.add_defaults options, :add_option_dashes => true cmd_sections = [server] cmd_sections << argv * " " cmd_sections << CMD.process_cmd_options(options) cmd = cmd_sections.compact * " " CMD.cmd(:ssh, cmd, :pipe => true) end def self.command(server, command, argv = [], options = nil) ssh(server, [command] + argv, options) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rbbt-util-5.37.16 | lib/rbbt/util/ssh.rb |