Exception: ChefCLI::Policyfile::AttributeMergeChecker::ConflictError

Inherits:
StandardError
  • Object
show all
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

Instance Method Summary collapse

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_pathObject (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_byObject (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