Class: ThreeScaleToolbox::Commands::BackendCommand::CopyCommand::CopyMethodsTask

Inherits:
Object
  • Object
show all
Includes:
Task
Defined in:
lib/3scale_toolbox/commands/backend_command/copy_command/copy_methods_task.rb

Instance Attribute Summary

Attributes included from Task

#context

Instance Method Summary collapse

Methods included from Task

#call, #delete_mapping_rules, #initialize, #logger, #option_target_system_name, #report, #source_backend, #source_backend_ref, #source_remote, #target_backend, #target_backend=, #target_remote

Instance Method Details

#runObject

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))
  logger.info "created #{missing_methods.size} missing methods"
  report['missing_methods_created'] = missing_methods.size
end