Printer
# File lib/sshkit/backends/netssh.rb, line 69 def background(*args) warn "[Deprecated] The background method is deprecated. Blame badly behaved pseudo-daemons!" options = args.extract_options!.merge(run_in_background: true) _execute(*[*args, options]).success? end
# File lib/sshkit/backends/netssh.rb, line 75 def capture(*args) options = { verbosity: Logger::DEBUG }.merge(args.extract_options!) _execute(*[*args, options]).full_stdout.strip end
# File lib/sshkit/backends/netssh.rb, line 87 def download!(remote, local=nil, options = {}) summarizer = transfer_summarizer('Downloading') with_ssh do |ssh| ssh.scp.download!(remote, local, options, &summarizer) end end
# File lib/sshkit/backends/netssh.rb, line 65 def execute(*args) _execute(*args).success? end
# File lib/sshkit/backends/netssh.rb, line 53 def run instance_exec(host, &@block) end
Generated with the Darkfish Rdoc Generator 2.