Sha256: b77195932174ccc97123904f91f0975f8ef752cacf6ffa819291c11ad7fb9e89

Contents?: true

Size: 568 Bytes

Versions: 3

Compression:

Stored size: 568 Bytes

Contents

module ThreeScaleToolbox
  module Commands
    module UpdateCommand
      module ServiceCommand
        class DeleteActiveDocsTask
          attr_reader :context

          def initialize(context)
            @context = context
          end

          def call
            puts 'deleting all target service ActiveDocs'
            target.activedocs.each do |activedoc|
              target.remote.delete_activedocs(activedoc['id'])
            end
          end

          def target
            context[:target]
          end
        end
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
3scale_toolbox-0.17.1 lib/3scale_toolbox/commands/update_command/service_command/delete_activedocs_task.rb
3scale_toolbox-0.17.0 lib/3scale_toolbox/commands/update_command/service_command/delete_activedocs_task.rb
3scale_toolbox-0.16.0 lib/3scale_toolbox/commands/update_command/service_command/delete_activedocs_task.rb