Class: ThreeScaleToolbox::Commands::ImportCommand::OpenAPI::ImportProductStep
- Inherits:
-
Object
- Object
- ThreeScaleToolbox::Commands::ImportCommand::OpenAPI::ImportProductStep
- Includes:
- Step
- Defined in:
- lib/3scale_toolbox/commands/import_command/openapi/import_product_step.rb
Instance Attribute Summary
Attributes included from Step
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
#call ⇒ Object
8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 |
# File 'lib/3scale_toolbox/commands/import_command/openapi/import_product_step.rb', line 8 def call tasks = [] tasks << CreateServiceStep.new(context) # other tasks might read proxy settings (CreateActiveDocsStep does) tasks << UpdateServiceProxyStep.new(context) tasks << CreateMethodsStep.new(context) tasks << ThreeScaleToolbox::Commands::ServiceCommand::CopyCommand::DestroyMappingRulesTask.new(context) tasks << CreateMappingRulesStep.new(context) tasks << CreateActiveDocsStep.new(context) tasks << UpdateServiceOidcConfStep.new(context) tasks << UpdatePoliciesStep.new(context) # run tasks tasks.each(&:call) # This should be the last step ThreeScaleToolbox::Commands::ServiceCommand::CopyCommand::BumpProxyVersionTask.new(service: context[:target]).call end |