Skip to content

Instantly share code, notes, and snippets.

@glennpratt
Created September 22, 2011 15:32
Show Gist options
  • Select an option

  • Save glennpratt/1235073 to your computer and use it in GitHub Desktop.

Select an option

Save glennpratt/1235073 to your computer and use it in GitHub Desktop.
Upload everything to chef-server
# Load common, useful tasks from Chef.
# rake -T to see the tasks this loads.
load 'chef/tasks/chef_repo.rake'
desc "Upload everything!?! Ok, just cookbooks, databags and roles, what about environments?"
task :upload_all => [ :metadata ]
task :upload_all do
# Upload cookbooks
Rake::Task['upload_cookbooks'].execute
# Upload roles
Rake::Task['roles'].execute
# Upload databags
Rake::Task['databag:upload_all'].execute
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment