Sha256: ee206b5f863041031299d6743764a35fe099280c6ed4680bb315a989af6bdd55
Contents?: true
Size: 430 Bytes
Versions: 12
Compression:
Stored size: 430 Bytes
Contents
module ThreeScaleToolbox module Tasks class DestroyMappingRulesTask attr_reader :context def initialize(context) @context = context end def call puts 'destroying all mapping rules' target.mapping_rules.each do |mapping_rule| target.delete_mapping_rule mapping_rule['id'] end end def target context[:target] end end end end
Version data entries
12 entries across 12 versions & 1 rubygems