lib/contrast/agent/patching/policy/trigger_node.rb in contrast-agent-6.1.0 vs lib/contrast/agent/patching/policy/trigger_node.rb in contrast-agent-6.1.1
- old
+ new
@@ -22,10 +22,11 @@
JSON_ON_EXCEPTION = 'on_exception'
attr_reader :applicator, :applicator_method, :on_exception, :optional_properties, :required_properties,
:rule_id
+ NODE = 'Trigger'
def initialize trigger_hash = {}, rule_hash = {}
super(trigger_hash)
@rule_id = rule_hash[JSON_NAME]
@on_exception = rule_hash[JSON_ON_EXCEPTION] # returns nil in most cases
@required_properties = rule_hash[JSON_REQUIRED_PROPS]
@@ -34,10 +35,9 @@
# if a unique applicator method is defined for this method (rare case), preference getting that one.
# otherwise, fall back to the normal applicator method for this rule
@applicator_method = (trigger_hash[JSON_APPLICATOR_METHOD] || rule_hash[JSON_APPLICATOR_METHOD]).to_sym
end
- NODE = 'Trigger'
def node_class
NODE
end
def validate