Module: TestLab::Support::Execution
Overview
Execution Support Module
Instance Method Summary collapse
-
#bootstrap(content, options = {}) ⇒ Object
Bootstrap.
-
#download(remote, local, options = {}) ⇒ Object
Download.
-
#exec(command, options = {}) ⇒ Object
Execute.
-
#file(options = {}, &block) ⇒ Object
File.
-
#upload(local, remote, options = {}) ⇒ Object
Uploads.
Instance Method Details
#bootstrap(content, options = {}) ⇒ Object
Bootstrap
Renders the supplied content into a file over the SSH connection and executes it as the ‘root’ user.
13 14 15 |
# File 'lib/testlab/support/execution.rb', line 13 def bootstrap(content, ={}) ssh.bootstrap(content, {:set_x => true, :set_e => true}.merge()) end |
#download(remote, local, options = {}) ⇒ Object
Download
39 40 41 |
# File 'lib/testlab/support/execution.rb', line 39 def download(remote, local, ={}) ssh.download(remote, local, ) end |
#exec(command, options = {}) ⇒ Object
Execute
Executes the supplied command over the SSH connection.
20 21 22 |
# File 'lib/testlab/support/execution.rb', line 20 def exec(command, ={}) ssh.exec(command, ) end |
#file(options = {}, &block) ⇒ Object
File
Renders the supplied file over the SSH connection.
27 28 29 |
# File 'lib/testlab/support/execution.rb', line 27 def file(={}, &block) ssh.file(, &block) end |
#upload(local, remote, options = {}) ⇒ Object
Uploads
Uploads the supplied file over the SSH connection.
34 35 36 |
# File 'lib/testlab/support/execution.rb', line 34 def upload(local, remote, ={}) ssh.upload(local, remote, ) end |