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:



238
239
240
# File 'lib/berkshelf/errors.rb', line 238

def initialize(cookbook)
  @cookbook = cookbook
end

Instance Method Details

#to_sObject



242
243
244
245
246
# File 'lib/berkshelf/errors.rb', line 242

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