Class: ThreeScaleToolbox::Commands::BackendCommand::CopyCommand::CopyMethodsTask
- Inherits:
-
Object
- Object
- ThreeScaleToolbox::Commands::BackendCommand::CopyCommand::CopyMethodsTask
- Includes:
- Task
- Defined in:
- lib/3scale_toolbox/commands/backend_command/copy_command/copy_methods_task.rb
Instance Attribute Summary
Attributes included from Task
Instance Method Summary collapse
-
#run ⇒ Object
entrypoint.
Methods included from Task
#call, #initialize, #invalidate_target_methods, #invalidate_target_metrics, #option_target_system_name, #source_backend, #source_backend_ref, #source_hits, #source_methods, #source_metrics, #source_remote, #target_backend, #target_backend=, #target_hits, #target_methods, #target_metrics, #target_remote
Instance Method Details
#run ⇒ Object
entrypoint
9 10 11 12 13 |
# File 'lib/3scale_toolbox/commands/backend_command/copy_command/copy_methods_task.rb', line 9 def run missing_methods.each(&method(:create_method)) puts "created #{missing_methods.size} missing methods" invalidate_target_methods if missing_methods.size.positive? end |