Exception: ChefDK::CookbookSourceConflict

Inherits:
StandardError
  • Object
show all
Defined in:
lib/chef-dk/exceptions.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(conflicting_cookbooks, cookbook_sources) ⇒ CookbookSourceConflict

Returns a new instance of CookbookSourceConflict.



80
81
82
83
84
# File 'lib/chef-dk/exceptions.rb', line 80

def initialize(conflicting_cookbooks, cookbook_sources)
  @conflicting_cookbooks = conflicting_cookbooks
  @cookbook_sources = cookbook_sources
  super(compute_message)
end

Instance Attribute Details

#conflicting_cookbooksObject (readonly)

Returns the value of attribute conflicting_cookbooks.



76
77
78
# File 'lib/chef-dk/exceptions.rb', line 76

def conflicting_cookbooks
  @conflicting_cookbooks
end

#cookbook_sourcesObject (readonly)

Returns the value of attribute cookbook_sources.



78
79
80
# File 'lib/chef-dk/exceptions.rb', line 78

def cookbook_sources
  @cookbook_sources
end