Sha256: a7202d0301ed4462e11c4d6a7a154f5fc29b2fab94b117ed8cf524b24107e1d8

Contents?: true

Size: 354 Bytes

Versions: 7

Compression:

Stored size: 354 Bytes

Contents

module ThreeScaleToolbox
  module Commands
    module BackendCommand
      module CopyCommand
        class DeleteMappingRulesTask
          include Task

          # entrypoint
          def run
            return unless delete_mapping_rules

            target_backend.mapping_rules.each(&:delete)
          end
        end
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
3scale_toolbox-1.0.1 lib/3scale_toolbox/commands/backend_command/copy_command/delete_mapping_rules_task.rb
3scale_toolbox-1.0.0 lib/3scale_toolbox/commands/backend_command/copy_command/delete_mapping_rules_task.rb
3scale_toolbox-0.20.0 lib/3scale_toolbox/commands/backend_command/copy_command/delete_mapping_rules_task.rb
3scale_toolbox-0.19.3 lib/3scale_toolbox/commands/backend_command/copy_command/delete_mapping_rules_task.rb
3scale_toolbox-0.19.2 lib/3scale_toolbox/commands/backend_command/copy_command/delete_mapping_rules_task.rb
3scale_toolbox-0.19.1 lib/3scale_toolbox/commands/backend_command/copy_command/delete_mapping_rules_task.rb
3scale_toolbox-0.19.0 lib/3scale_toolbox/commands/backend_command/copy_command/delete_mapping_rules_task.rb