Created
March 5, 2014 08:22
-
-
Save sawanoboly/9363256 to your computer and use it in GitHub Desktop.
Rakefile for vagrant_with_chefzero_example
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
task :default => 'upload' | |
$stdin.sync = true | |
desc 'upload chef-repos to chefzero vm' | |
task :upload do | |
system('knife cookbook upload --all') | |
system('knife upload environments/ ') | |
system('knife upload roles/ ') | |
end | |
desc 'reset chefzero' | |
task :reset do | |
system('vagrant reload chefzero') | |
Rake::Task['chefzero:upload'].invoke | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment