Class: ThreeScaleToolbox::Commands::ProductCommand::CopyCommand::DeleteExistingTargetBackendUsagesTask
- Inherits:
-
Object
- Object
- ThreeScaleToolbox::Commands::ProductCommand::CopyCommand::DeleteExistingTargetBackendUsagesTask
- Defined in:
- lib/3scale_toolbox/commands/product_command/copy_command/delete_target_backend_usages_task.rb
Instance Attribute Summary collapse
-
#context ⇒ Object
readonly
Returns the value of attribute context.
Instance Method Summary collapse
-
#call ⇒ Object
entrypoint.
-
#initialize(context) ⇒ DeleteExistingTargetBackendUsagesTask
constructor
A new instance of DeleteExistingTargetBackendUsagesTask.
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
#context ⇒ Object (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
#call ⇒ Object
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 |