Sha256: caba2cbb70db06a4fc91ece6f42dbb10f3795c6a7d19f46b9b464d3b35299a27
Contents?: true
Size: 1.02 KB
Versions: 15
Compression:
Stored size: 1.02 KB
Contents
# Copyright (c) 2020 Contrast Security, Inc. See https://www.contrastsecurity.com/enduser-terms-0317a for more details. # frozen_string_literal: true module Contrast module Agent module Assess module Policy module Propagator # Propagation that results in all the tags of the source being # applied to the target exactly as they are in the source. The # target's preexisting tags are all removed. class Replace < Contrast::Agent::Assess::Policy::Propagator::Base class << self # Replace means we're replacing the target w/ the source. Anything # on the source should be passed to the target. def propagate propagation_node, preshift, target source = find_source(propagation_node.sources[0], preshift) target.cs__properties.clear_tags target.cs__copy_from(source, 0, propagation_node.untags) end end end end end end end end
Version data entries
15 entries across 15 versions & 1 rubygems