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