Sha256: 612d5e7966704d07aa3c6dda68faffc4cde910d77097ff67871b87e8b3fd17c9

Contents?: true

Size: 484 Bytes

Versions: 7

Compression:

Stored size: 484 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(&:delete)
          end

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

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
3scale_toolbox-0.19.3 lib/3scale_toolbox/commands/update_command/service_command/delete_activedocs_task.rb
3scale_toolbox-0.19.2 lib/3scale_toolbox/commands/update_command/service_command/delete_activedocs_task.rb
3scale_toolbox-0.19.1 lib/3scale_toolbox/commands/update_command/service_command/delete_activedocs_task.rb
3scale_toolbox-0.19.0 lib/3scale_toolbox/commands/update_command/service_command/delete_activedocs_task.rb
3scale_toolbox-0.18.3 lib/3scale_toolbox/commands/update_command/service_command/delete_activedocs_task.rb
3scale_toolbox-0.18.2 lib/3scale_toolbox/commands/update_command/service_command/delete_activedocs_task.rb
3scale_toolbox-0.18.0 lib/3scale_toolbox/commands/update_command/service_command/delete_activedocs_task.rb