Skip to content

Instantly share code, notes, and snippets.

@heim
Created June 1, 2011 09:05
Show Gist options
  • Save heim/1002011 to your computer and use it in GitHub Desktop.
Save heim/1002011 to your computer and use it in GitHub Desktop.
require 'vagrant'
task :hello do
env = Vagrant::Environment.new
raise "Must run `vagrant up`" if !env.primary_vm.created?
raise "Must be running!" if !env.primary_vm.vm.running?
env.primary_vm.ssh.execute do |ssh|
ssh.exec!("echo 'Hello BuyPass' > hello.txt")
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment