Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Rakefile allowing a two-phase work with Vagrant:
- # - first bootstrap from the lucid32 box but applies what's missing
- # - then regular cookbook development
- def system!(cmd)
- puts "Running #{cmd}"
- raise "Error running #{cmd}!" unless system(cmd)
- end
- task :bootstrap do
- system!("vagrant destroy")
- ENV['HACKER_BOOTSTRAP'] = '1'
- system!("vagrant up")
- ENV['HACKER_BOOTSTRAP'] = nil
- system!("vagrant package")
- system("vagrant box remove hackerbooks")
- system!("vagrant box add hackerbooks package.box")
- system!("rm package.box")
- system!("vagrant destroy")
- system!("vagrant up")
- end
Add Comment
Please, Sign In to add comment