Sha256: 84a7785337e1fa59172a9f25ada31aeaf7d08836490e71ff26d8b8a8f8e0f759

Contents?: true

Size: 473 Bytes

Versions: 7

Compression:

Stored size: 473 Bytes

Contents

module ThreeScaleToolbox
  module Commands
    module ImportCommand
      module OpenAPI
        class CreateMappingRulesStep
          include Step

          def call
            operations.each do |op|
              Entities::MappingRule.create(service: service,
                                           attrs: op.mapping_rule)
              puts "Created #{op.http_method} #{op.pattern} endpoint"
            end
          end
        end
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
3scale_toolbox-0.19.3 lib/3scale_toolbox/commands/import_command/openapi/create_mapping_rule_step.rb
3scale_toolbox-0.19.2 lib/3scale_toolbox/commands/import_command/openapi/create_mapping_rule_step.rb
3scale_toolbox-0.19.1 lib/3scale_toolbox/commands/import_command/openapi/create_mapping_rule_step.rb
3scale_toolbox-0.19.0 lib/3scale_toolbox/commands/import_command/openapi/create_mapping_rule_step.rb
3scale_toolbox-0.18.3 lib/3scale_toolbox/commands/import_command/openapi/create_mapping_rule_step.rb
3scale_toolbox-0.18.2 lib/3scale_toolbox/commands/import_command/openapi/create_mapping_rule_step.rb
3scale_toolbox-0.18.0 lib/3scale_toolbox/commands/import_command/openapi/create_mapping_rule_step.rb