Exception: ChefCLI::Policyfile::AttributeMergeChecker::ConflictError
- Inherits:
-
StandardError
- Object
- StandardError
- ChefCLI::Policyfile::AttributeMergeChecker::ConflictError
- Defined in:
- lib/chef-cli/policyfile/attribute_merge_checker.rb
Overview
A ConflictError is used to specify a conflict has occurred
Instance Attribute Summary collapse
-
#attribute_path ⇒ Object
readonly
Returns the value of attribute attribute_path.
-
#provided_by ⇒ Object
readonly
Returns the value of attribute provided_by.
Instance Method Summary collapse
-
#initialize(attribute_path, provided_by) ⇒ ConflictError
constructor
A new instance of ConflictError.
Constructor Details
#initialize(attribute_path, provided_by) ⇒ ConflictError
Returns a new instance of ConflictError.
28 29 30 31 32 |
# File 'lib/chef-cli/policyfile/attribute_merge_checker.rb', line 28 def initialize(attribute_path, provided_by) @attribute_path = attribute_path @provided_by = provided_by super("Attribute '#{attribute_path}' provided conflicting values by the following sources #{provided_by}") end |
Instance Attribute Details
#attribute_path ⇒ Object (readonly)
Returns the value of attribute attribute_path.
25 26 27 |
# File 'lib/chef-cli/policyfile/attribute_merge_checker.rb', line 25 def attribute_path @attribute_path end |
#provided_by ⇒ Object (readonly)
Returns the value of attribute provided_by.
26 27 28 |
# File 'lib/chef-cli/policyfile/attribute_merge_checker.rb', line 26 def provided_by @provided_by end |