Exception: Berkshelf::FrozenCookbook

Inherits:
UploadFailure show all
Defined in:
lib/berkshelf/errors.rb

Instance Method Summary collapse

Methods inherited from BerkshelfError

set_status_code

Constructor Details

#initialize(cookbook) ⇒ FrozenCookbook

Returns a new instance of FrozenCookbook.

Parameters:



263
264
265
# File 'lib/berkshelf/errors.rb', line 263

def initialize(cookbook)
  @cookbook = cookbook
end

Instance Method Details

#to_sObject Also known as: message



267
268
269
270
271
# File 'lib/berkshelf/errors.rb', line 267

def to_s
  "The cookbook #{@cookbook.cookbook_name} (#{@cookbook.version}) " \
  "already exists and is frozen on the Chef Server. Use the --force " \
  "option to override."
end