class CookbookOmnifetch::CookbookValidationFailure

Public Class Methods

new(dependency, cached_cookbook) click to toggle source

@param [Location] location

the location (or any subclass) raising this validation error

@param [CachedCookbook] cached_cookbook

the cached_cookbook that does not satisfy the constraint
Calls superclass method
# File lib/cookbook-omnifetch/exceptions.rb, line 69
def initialize(dependency, cached_cookbook)
  @dependency      = dependency
  @cached_cookbook = cached_cookbook
  super(to_s)
end

Public Instance Methods

to_s() click to toggle source
# File lib/cookbook-omnifetch/exceptions.rb, line 75
def to_s
  "The cookbook downloaded for #{@dependency} did not satisfy the constraint."
end