module TestLab::Support::Execution

Execution Support Module

@author Zachary Patten <zachary AT jovelabs DOT com>

Public Instance Methods

bootstrap(content, options={}) click to toggle source

Bootstrap

Renders the supplied content into a file over the SSH connection and executes it as the 'root' user.

# File lib/testlab/support/execution.rb, line 13
def bootstrap(content, options={})
  ssh.bootstrap(content, {:set_x => true, :set_e => true}.merge(options))
end
download(remote, local, options={}) click to toggle source

Download

# File lib/testlab/support/execution.rb, line 39
def download(remote, local, options={})
  ssh.download(remote, local, options)
end
exec(command, options={}) click to toggle source

Execute

Executes the supplied command over the SSH connection.

# File lib/testlab/support/execution.rb, line 20
def exec(command, options={})
  ssh.exec(command, options)
end
file(options={}, &block) click to toggle source

File

Renders the supplied file over the SSH connection.

# File lib/testlab/support/execution.rb, line 27
def file(options={}, &block)
  ssh.file(options, &block)
end
upload(local, remote, options={}) click to toggle source

Uploads

Uploads the supplied file over the SSH connection.

# File lib/testlab/support/execution.rb, line 34
def upload(local, remote, options={})
  ssh.upload(local, remote, options)
end