Class: Contrast::Agent::DisableReaction

Inherits:
Object
  • Object
show all
Includes:
Components::Interface
Defined in:
lib/contrast/agent/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::Interface

included

Class Method Details

.run(_reaction, level) ⇒ Object



15
16
17
18
19
20
# File 'lib/contrast/agent/disable_reaction.rb', line 15

def self.run _reaction, level
  logger.with_level(
      level,
      'Contrast received instructions to disable itself - Disabling now')
  AGENT.disable!
end