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
Methods inherited from BerkshelfError
Constructor Details
#initialize(cookbook) ⇒ FrozenCookbook
Returns a new instance of FrozenCookbook.
238 239 240 |
# File 'lib/berkshelf/errors.rb', line 238 def initialize(cookbook) @cookbook = cookbook end |
Instance Method Details
#to_s ⇒ Object
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 |