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