Sha256: 73b32f156873063e2753be1aad67533a072ae860d4a982d01aaaf03c9c2561c0

Contents?: true

Size: 480 Bytes

Versions: 1

Compression:

Stored size: 480 Bytes

Contents

Then(/^SHH subprocess should execute command "(.+)"$/) do |command|
  ssh  = %w(vagrant@127.0.0.1 -p 2200 -o Compression=yes)
  ssh += %w(-o DSAAuthentication=yes -o LogLevel=FATAL)
  ssh += %w(-o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null)
  ssh += %W(-o IdentitiesOnly=yes -i #{Dir.home}/.vagrant.d/insecure_private_key)
  ssh += ['-q', '-t', "bash -l -c '#{command.delete('"')} --'"]
  assert_partial_output("Executing SSH in subprocess: #{ssh}", all_output)
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
vagrant-exec-0.3.0 features/step_definitions/steps.rb