Sha256: fd305a10298da92756736ccefbb32551adbe4bae06b7ca8bc29a4a6de5329db6
Contents?: true
Size: 870 Bytes
Versions: 5
Compression:
Stored size: 870 Bytes
Contents
# http://stackoverflow.com/questions/216202/why-does-an-ssh-remote-command-get-fewer-environment-variables-then-when-run-manu Given /^a veeweebox was build$/ do @environment=Veewee::Environment.new() @provider_name=ENV['VEEWEE_PROVIDER'] @definition_name=ENV['VEEWEE_BOXNAME'] @box_name=ENV['VEEWEE_BOXNAME'] @box=@environment.providers[@provider_name].get_box(@box_name) end When /^I sudorun "([^\"]*)" over ssh$/ do |command| @box.exec("echo '#{command}' > /tmp/validation.sh") @sshresult=@box.exec(@box.sudo("/tmp/validation.sh")) end When /^I run "([^\"]*)" over ssh$/ do |command| @sshresult=@box.exec(command) end Then /^I should see the provided username in the output$/ do @sshresult.stdout.should =~ /#{ENV["VEEWEE_SSH_USER"]}/ end Then /^I should see "([^\"]*)" in the output$/ do |string| @sshresult.stdout.should =~ /#{string}/ end
Version data entries
5 entries across 5 versions & 1 rubygems