Created
September 22, 2011 15:32
-
-
Save glennpratt/1235073 to your computer and use it in GitHub Desktop.
Upload everything to chef-server
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
| # 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