lib/ridley/resources/cookbook_resource.rb in ridley-1.1.1 vs lib/ridley/resources/cookbook_resource.rb in ridley-1.2.0

- old
+ new

@@ -146,10 +146,10 @@ # and is frozen. If the :force option is provided the given cookbook will be saved # regardless. # # @return [Hash] def update(cookbook, options = {}) - options.reverse_merge(force: false, freeze: false) + options = options.reverse_merge(force: false, freeze: false) cookbook.frozen = options[:freeze] url = "cookbooks/#{cookbook.cookbook_name}/#{cookbook.version}" url << "?force=true" if options[:force]