Exception: Berkshelf::FrozenCookbook
- Inherits:
-
UploadFailure
- Object
- StandardError
- BerkshelfError
- UploadFailure
- Berkshelf::FrozenCookbook
- Defined in:
- lib/berkshelf/errors.rb
Instance Method Summary collapse
-
#initialize(cookbook) ⇒ FrozenCookbook
constructor
A new instance of FrozenCookbook.
- #to_s ⇒ Object (also: #message)
Methods inherited from BerkshelfError
Constructor Details
#initialize(cookbook) ⇒ FrozenCookbook
Returns a new instance of FrozenCookbook.
263 264 265 |
# File 'lib/berkshelf/errors.rb', line 263 def initialize(cookbook) @cookbook = cookbook end |
Instance Method Details
#to_s ⇒ Object 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 |