Exception: Berkshelf::DependencyNotInstalled
- Inherits:
-
BerkshelfError
- Object
- StandardError
- BerkshelfError
- Berkshelf::DependencyNotInstalled
- Defined in:
- lib/berkshelf/errors.rb
Instance Method Summary collapse
-
#initialize(dependency) ⇒ DependencyNotInstalled
constructor
A new instance of DependencyNotInstalled.
- #to_s ⇒ Object (also: #message)
Methods inherited from BerkshelfError
Constructor Details
#initialize(dependency) ⇒ DependencyNotInstalled
Returns a new instance of DependencyNotInstalled.
480 481 482 483 |
# File 'lib/berkshelf/errors.rb', line 480 def initialize(dependency) @name = dependency.name @version = dependency.locked_version end |
Instance Method Details
#to_s ⇒ Object Also known as: message
485 486 487 488 |
# File 'lib/berkshelf/errors.rb', line 485 def to_s "The cookbook '#{@name} (#{@version})' is not installed. Please run " \ "`berks install` to download and install the missing dependency." end |