Class: ThreeScaleToolbox::Commands::ProductCommand::CopyCommand::DeleteExistingTargetBackendUsagesTask

Inherits:
Object
  • Object
show all
Defined in:
lib/3scale_toolbox/commands/product_command/copy_command/delete_target_backend_usages_task.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(context) ⇒ DeleteExistingTargetBackendUsagesTask

Returns a new instance of DeleteExistingTargetBackendUsagesTask.



8
9
10
# File 'lib/3scale_toolbox/commands/product_command/copy_command/delete_target_backend_usages_task.rb', line 8

def initialize(context)
  @context = context
end

Instance Attribute Details

#contextObject (readonly)

Returns the value of attribute context.



6
7
8
# File 'lib/3scale_toolbox/commands/product_command/copy_command/delete_target_backend_usages_task.rb', line 6

def context
  @context
end

Instance Method Details

#callObject

entrypoint



13
14
15
# File 'lib/3scale_toolbox/commands/product_command/copy_command/delete_target_backend_usages_task.rb', line 13

def call
  conflicting_target_backend_usage_list.each(&:delete)
end