Sha256: 20ad0de16e4e083abc6d96d8fc1432a8d223cf96d923ba7c89d29942425bfa26

Contents?: true

Size: 1.01 KB

Versions: 42

Compression:

Stored size: 1.01 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, 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

42 entries across 42 versions & 1 rubygems

Version Path
testlab-1.11.7 lib/testlab/support/execution.rb
testlab-1.11.6 lib/testlab/support/execution.rb
testlab-1.11.5 lib/testlab/support/execution.rb
testlab-1.11.4 lib/testlab/support/execution.rb
testlab-1.11.3 lib/testlab/support/execution.rb
testlab-1.11.2 lib/testlab/support/execution.rb
testlab-1.11.1 lib/testlab/support/execution.rb
testlab-1.11.0 lib/testlab/support/execution.rb
testlab-1.10.0 lib/testlab/support/execution.rb
testlab-1.9.2 lib/testlab/support/execution.rb
testlab-1.9.1 lib/testlab/support/execution.rb
testlab-1.9.0 lib/testlab/support/execution.rb
testlab-1.8.5 lib/testlab/support/execution.rb
testlab-1.8.4 lib/testlab/support/execution.rb
testlab-1.8.3 lib/testlab/support/execution.rb
testlab-1.8.2 lib/testlab/support/execution.rb
testlab-1.8.1 lib/testlab/support/execution.rb
testlab-1.8.0 lib/testlab/support/execution.rb
testlab-1.7.1 lib/testlab/support/execution.rb
testlab-1.7.0 lib/testlab/support/execution.rb