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:



261
262
263
# File 'lib/berkshelf/errors.rb', line 261

def initialize(cookbook)
  @cookbook = cookbook
end

Instance Method Details

#to_sObject Also known as: message



265
266
267
268
269
# File 'lib/berkshelf/errors.rb', line 265

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