lib/contrast/agent/patching/policy/policy.rb in contrast-agent-6.2.0 vs lib/contrast/agent/patching/policy/policy.rb in contrast-agent-6.3.0

- old
+ new

@@ -33,19 +33,24 @@ json = Contrast::Utils::ResourceLoader.load(cs__class.policy_json) from_hash_string(json) end # Indicates the folder in `resources` where this policy lives. + # + # @raise[NoMethodError] raises if any of the subclasses, extending this class is not implementing this method def self.policy_folder raise(NoMethodError, 'specify policy_folder for patching') end # Indicates is this feature has been disabled by the configuration, read at startup, and therefore can never # be enabled. + # + # @raise[NoMethodError] raises if any of the subclasses, extending this class is not implementing this method def disabled_globally? raise(NoMethodError, 'specify disabled_globally? conditions for patching') end + # @raise[NoMethodError] raises if any of the subclasses, extending this class is not implementing this method def node_type raise(NoMethodError, 'specify the concrete node type for this poilcy') end attr_reader :sources, :propagators, :triggers, :providers