Exception: Berkshelf::DependencyNotInstalled

Inherits:
BerkshelfError
  • Object
show all
Defined in:
lib/berkshelf/errors.rb

Instance Method Summary collapse

Methods inherited from BerkshelfError

set_status_code

Constructor Details

#initialize(dependency) ⇒ DependencyNotInstalled

Returns a new instance of DependencyNotInstalled.


433
434
435
436
# File 'lib/berkshelf/errors.rb', line 433

def initialize(dependency)
  @name    = dependency.name
  @version = dependency.locked_version
end

Instance Method Details

#to_sObject


438
439
440
441
# File 'lib/berkshelf/errors.rb', line 438

def to_s
  "The cookbook '#{@name} (#{@version})' is not installed. Please run " \
  "`berks install` to download and install the missing dependency."
end