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

Version Path
testlab-1.22.4 lib/testlab/support/execution.rb
testlab-1.22.3 lib/testlab/support/execution.rb
testlab-1.22.2 lib/testlab/support/execution.rb
testlab-1.22.1 lib/testlab/support/execution.rb
testlab-1.22.0 lib/testlab/support/execution.rb
testlab-1.21.1 lib/testlab/support/execution.rb
testlab-1.21.0 lib/testlab/support/execution.rb
testlab-1.20.6 lib/testlab/support/execution.rb
testlab-1.20.5 lib/testlab/support/execution.rb
testlab-1.20.4 lib/testlab/support/execution.rb
testlab-1.20.3 lib/testlab/support/execution.rb
testlab-1.20.2 lib/testlab/support/execution.rb
testlab-1.20.1 lib/testlab/support/execution.rb
testlab-1.20.0 lib/testlab/support/execution.rb
testlab-1.19.0 lib/testlab/support/execution.rb
testlab-1.18.1 lib/testlab/support/execution.rb
testlab-1.18.0 lib/testlab/support/execution.rb
testlab-1.17.0 lib/testlab/support/execution.rb
testlab-1.16.1 lib/testlab/support/execution.rb
testlab-1.16.0 lib/testlab/support/execution.rb