Skip to content

Instantly share code, notes, and snippets.

@sawanoboly
Created March 5, 2014 08:22
Show Gist options
  • Save sawanoboly/9363256 to your computer and use it in GitHub Desktop.
Save sawanoboly/9363256 to your computer and use it in GitHub Desktop.
Rakefile for vagrant_with_chefzero_example
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