Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Adding rake berkshelf_upload[cookbook]

  • Loading branch information...
commit 9918b27fca44c4296bbd224a105b5e5da46057cc 1 parent 4b908a4
@temujin9 temujin9 authored
Showing with 7 additions and 2 deletions.
  1. +7 −2 Rakefile
View
9 Rakefile
@@ -62,9 +62,14 @@ desc "Install berkshelf cookbooks locally"
task :berkshelf do |t, args|
system("bundle exec berks install --path cookbooks")
end
-
desc "Install berkshelf cookbooks and sync with Chef server"
task :berkshelf_install => [ :berkshelf, :install ]
+desc "Install berkshelf cookbooks and upload one to the Chef server"
+task :berkshelf_upload => [ :berkshelf ]
+task :berkshelf_upload, :cookbook do |t, args|
+ system("knife cookbook upload #{args.cookbook}")
+end
+
desc "Bundle a single cookbook for distribution"
task :bundle_cookbook => [ :metadata ]
@@ -119,7 +124,7 @@ end
# ---------------------------------------------------------------------------
#
# RSpec -- testing
-# #
+#
# RSpec::Core::RakeTask.new(:spec) do |spec|
# spec.pattern = FileList['spec/**/*_spec.rb']
# end
Please sign in to comment.
Something went wrong with that request. Please try again.