class ThreeScaleToolbox::Commands::UpdateCommand::ServiceCommand::DeleteActiveDocsTask
Attributes
context[R]
Public Class Methods
new(context)
click to toggle source
# File lib/3scale_toolbox/commands/update_command/service_command/delete_activedocs_task.rb, line 8 def initialize(context) @context = context end
Public Instance Methods
call()
click to toggle source
# File lib/3scale_toolbox/commands/update_command/service_command/delete_activedocs_task.rb, line 12 def call puts 'deleting all target service ActiveDocs' target.activedocs.each(&:delete) end
target()
click to toggle source
# File lib/3scale_toolbox/commands/update_command/service_command/delete_activedocs_task.rb, line 17 def target context[:target] end