Sha256: de2e6f1a30674e379a44408e7f51afca271bd779b879a06997fd1858fbea642d

Contents?: true

Size: 1007 Bytes

Versions: 20

Compression:

Stored size: 1007 Bytes

Contents

# Copyright (c) 2022 Contrast Security, Inc. See https://www.contrastsecurity.com/enduser-terms-0317a for more details.
# frozen_string_literal: true

require 'contrast/agent/patching/policy/policy_node'

module Contrast
  module Agent
    module Deadzone
      module Policy
        # This class functions to translate our policy.json into an actionable Ruby object, allowing for dynamic
        # patching over hardcoded patching, specifically for those methods in which other Contrast operations should
        # not apply.
        class DeadzoneNode < Contrast::Agent::Patching::Policy::PolicyNode
          def node_class
            'Deadzone'
          end

          def feature
            'Deadzone'
          end

          # Deadzone means place the code inside of the contrast scope so that none of our code executes. As such, all
          # DeadZone nodes have that as their method scope.
          def method_scope
            :contrast
          end
        end
      end
    end
  end
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
contrast-agent-6.11.0 lib/contrast/agent/deadzone/policy/deadzone_node.rb
contrast-agent-6.10.0 lib/contrast/agent/deadzone/policy/deadzone_node.rb
contrast-agent-6.9.0 lib/contrast/agent/deadzone/policy/deadzone_node.rb
contrast-agent-6.8.0 lib/contrast/agent/deadzone/policy/deadzone_node.rb
contrast-agent-6.7.0 lib/contrast/agent/deadzone/policy/deadzone_node.rb
contrast-agent-6.6.5 lib/contrast/agent/deadzone/policy/deadzone_node.rb
contrast-agent-6.6.4 lib/contrast/agent/deadzone/policy/deadzone_node.rb
contrast-agent-6.6.3 lib/contrast/agent/deadzone/policy/deadzone_node.rb
contrast-agent-6.6.2 lib/contrast/agent/deadzone/policy/deadzone_node.rb
contrast-agent-6.6.1 lib/contrast/agent/deadzone/policy/deadzone_node.rb
contrast-agent-6.6.0 lib/contrast/agent/deadzone/policy/deadzone_node.rb
contrast-agent-6.5.1 lib/contrast/agent/deadzone/policy/deadzone_node.rb
contrast-agent-6.5.0 lib/contrast/agent/deadzone/policy/deadzone_node.rb
contrast-agent-6.4.0 lib/contrast/agent/deadzone/policy/deadzone_node.rb
contrast-agent-6.3.0 lib/contrast/agent/deadzone/policy/deadzone_node.rb
contrast-agent-6.2.0 lib/contrast/agent/deadzone/policy/deadzone_node.rb
contrast-agent-6.1.2 lib/contrast/agent/deadzone/policy/deadzone_node.rb
contrast-agent-6.1.1 lib/contrast/agent/deadzone/policy/deadzone_node.rb
contrast-agent-6.1.0 lib/contrast/agent/deadzone/policy/deadzone_node.rb
contrast-agent-6.0.0 lib/contrast/agent/deadzone/policy/deadzone_node.rb