Skip to content

Instantly share code, notes, and snippets.

@Atalanta
Created May 27, 2011 19:38
Show Gist options
  • Save Atalanta/995980 to your computer and use it in GitHub Desktop.
Save Atalanta/995980 to your computer and use it in GitHub Desktop.
def upload_cookbook(config)
cookbook_path = File.expand_path(File.join(File.dirname(__FILE__),
"../../cookbooks/cucumber-chef"))
version_loader = ::Chef::Cookbook::CookbookVersionLoader.new(cookbook_path)
version_loader.load_cookbooks
uploader = ::Chef::CookbookUploader.new(version_loader.cookbook_version,
cookbook_path)
uploader.upload_cookbook
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment