Class: ThreeScaleToolbox::Commands::ImportCommand::OpenAPI::ImportBackendStep

Inherits:
Object
  • Object
show all
Includes:
Step
Defined in:
lib/3scale_toolbox/commands/import_command/openapi/import_backend_step.rb

Instance Attribute Summary

Attributes included from Step

#context

Instance Method Summary collapse

Methods included from Step

#api_spec, #backend, #backend=, #backend_api_host_header, #backend_api_secret_token, #base_path, #build_3scale_operations, #default_credentials_userkey, #host, #initialize, #logger, #oidc_issuer_endpoint, #oidc_issuer_type, #operations, #override_private_base_url, #override_private_basepath, #override_public_basepath, #prefix_matching, #private_base_path, #private_endpoint, #production_public_base_url, #public_base_path, #report, #resource, #service, #service=, #staging_public_base_url, #target_system_name, #threescale_client

Instance Method Details

#callObject



8
9
10
11
12
13
14
15
16
17
18
# File 'lib/3scale_toolbox/commands/import_command/openapi/import_backend_step.rb', line 8

def call
  verify_params

  tasks = []
  tasks << CreateBackendStep.new(context)
  tasks << CreateBackendMethodsStep.new(context)
  tasks << CreateBackendMappingRulesStep.new(context)

  # run tasks
  tasks.each(&:call)
end