Created
June 1, 2011 09:05
-
-
Save heim/1002011 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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