Sha256: a02a0142212af1eac668d0510f004187323f42e3ec2e95bd65aa788a5cfc5efc

Contents?: true

Size: 395 Bytes

Versions: 4

Compression:

Stored size: 395 Bytes

Contents

module Dbcp
  class LocalExecutionHost < ExecutionHost

    # Cheap way for == to evaluate to `true` between `LocalExecutionHost` objects
    values do
    end

    def remote?
      false
    end

    def execute(command)
      Kernel.system command
      raise ExecutionError.new "Execution failed with exit code #{$?.exitstatus}. Command was: #{command}" unless $?.success?
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
dbcp-0.2.1 lib/dbcp/execution_hosts/local_execution_host.rb
dbcp-0.2.0 lib/dbcp/execution_hosts/local_execution_host.rb
dbcp-0.1.0 lib/dbcp/execution_hosts/local_execution_host.rb
dbcp-0.0.1 lib/dbcp/execution_hosts/local_execution_host.rb