Sha256: a2b048b86c61df65dc0011cb747daf7540aad9e311752a871afc2d4ab2f81570

Contents?: true

Size: 618 Bytes

Versions: 5

Compression:

Stored size: 618 Bytes

Contents

require 'rubygems'
require 'bundler/setup'
require 'rspec'
require Dir.pwd + '/lib/remote_run'

RemoteRun::Configuration.new do |config|
  config.tasks = []
  config.hosts = []
  config.quiet = true
end

RSpec.configure do |config|
  config.after(:each) do
    system("rm -f #{RemoteRun::Host::LockFile::FILE}")
  end
end

def ssh_command(host, cmd)
  result = `ssh -q -o NoHostAuthenticationForLocalhost=yes -o UserKnownHostsFile=/dev/null -o NumberOfPasswordPrompts=0 -o StrictHostKeyChecking=no -o ConnectTimeout=3 -4 #{host} '#{cmd}'`.strip
  raise "SSH Execution Error: #{result}" unless $?.success?
  result
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
remote_run-0.1.9 spec/spec_helper.rb
remote_run-0.1.8 spec/spec_helper.rb
remote_run-0.1.7 spec/spec_helper.rb
remote_run-0.1.6 spec/spec_helper.rb
remote_run-0.1.5 spec/spec_helper.rb