Sha256: a5a2589a8b971d642a6c83cb11d2b7f557616b8441bbe0138c9135ac920d8092

Contents?: true

Size: 434 Bytes

Versions: 8

Compression:

Stored size: 434 Bytes

Contents

module ThreeScaleToolbox
  module Tasks
    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

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
3scale_toolbox-0.15.0 lib/3scale_toolbox/tasks/delete_activedocs_task.rb
3scale_toolbox-0.14.0 lib/3scale_toolbox/tasks/delete_activedocs_task.rb
3scale_toolbox-0.13.0 lib/3scale_toolbox/tasks/delete_activedocs_task.rb
3scale_toolbox-0.12.4 lib/3scale_toolbox/tasks/delete_activedocs_task.rb
3scale_toolbox-0.12.3 lib/3scale_toolbox/tasks/delete_activedocs_task.rb
3scale_toolbox-0.12.2 lib/3scale_toolbox/tasks/delete_activedocs_task.rb
3scale_toolbox-0.11.0 lib/3scale_toolbox/tasks/delete_activedocs_task.rb
3scale_toolbox-0.10.0 lib/3scale_toolbox/tasks/delete_activedocs_task.rb