Class: Ridley::Cookbook
- Inherits:
-
Object
- Object
- Ridley::Cookbook
- Includes:
- Resource
- Defined in:
- lib/ridley/resources/cookbook.rb
Overview
Class Method Summary collapse
-
.save(connection, name, version, manifest, options = {}) ⇒ Hash
Save a new Cookbook Version of the given name, version with the given manifest of files and checksums.
Methods included from Resource
#<=>, #==, #attribute, #attribute=, #attribute?, #attributes, #attributes=, #chef_id, #eql?, #from_hash, #from_json, #hash, #initialize, #reload, #save, #to_hash, #to_json, #to_s
Class Method Details
.save(connection, name, version, manifest, options = {}) ⇒ Hash
Save a new Cookbook Version of the given name, version with the given manifest of files and checksums.
21 22 23 24 25 26 27 28 29 |
# File 'lib/ridley/resources/cookbook.rb', line 21 def save(connection, name, version, manifest, = {}) freeze = .fetch(:freeze, false) force = .fetch(:force, false) url = "cookbooks/#{name}/#{version}" url << "?force=true" if force connection.put(url, manifest) end |