Module: Contrast::Agent::DisableReaction
- Extended by:
- Components::Logger::InstanceMethods
- Defined in:
- lib/contrast/agent/reactions/disable_reaction.rb
Overview
A Reaction from TeamServer which indicates the Agent should be disabled, typically because some configuration setting did not satisfy requirements set by the Organization’s Administrator
Class Method Summary collapse
Methods included from Components::Logger::InstanceMethods
Class Method Details
.run(_reaction, level) ⇒ Object
14 15 16 17 |
# File 'lib/contrast/agent/reactions/disable_reaction.rb', line 14 def self.run _reaction, level logger.with_level(level, 'Contrast received instructions to disable itself - Disabling now') ::Contrast::AGENT.disable! end |