Sha256: 2cf6720ffc2d1bd5f6013adb7b02aeabb16e2c511395a93b0ebb7a969a8e4b28
Contents?: true
Size: 1.05 KB
Versions: 25
Compression:
Stored size: 1.05 KB
Contents
class TestLab module Support # Execution Support Module # # @author Zachary Patten <zachary AT jovelabs DOT com> module Execution # Bootstrap # # Renders the supplied content into a file over the SSH connection and # executes it as the 'root' user. def bootstrap(content, options={}) ssh.bootstrap(content, {:set_x => true, :set_e => true}.merge(options)) end # Execute # # Executes the supplied command over the SSH connection. def exec(command, options={}) ssh.exec(command, options) end # File # # Renders the supplied file over the SSH connection. def file(options={}, &block) ssh.file(options, &block) end # Uploads # # Uploads the supplied file over the SSH connection. def upload(local, remote, options={}) ssh.upload(local, remote, options) end # Download def download(remote, local, options={}) ssh.download(remote, local, options) end end end end
Version data entries
25 entries across 25 versions & 1 rubygems