Exception: ChefCLI::CookbookSourceConflict

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(conflicting_cookbooks, cookbook_sources) ⇒ CookbookSourceConflict

Returns a new instance of CookbookSourceConflict.



116
117
118
119
120
# File 'lib/chef-cli/exceptions.rb', line 116

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.



112
113
114
# File 'lib/chef-cli/exceptions.rb', line 112

def conflicting_cookbooks
  @conflicting_cookbooks
end

#cookbook_sourcesObject (readonly)

Returns the value of attribute cookbook_sources.



114
115
116
# File 'lib/chef-cli/exceptions.rb', line 114

def cookbook_sources
  @cookbook_sources
end