Sha256: 94d260af7e04edf3eb49359c809c48b35c795828258a4059049c4ae597b042ee

Contents?: true

Size: 404 Bytes

Versions: 15

Compression:

Stored size: 404 Bytes

Contents

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

          def call
            operations.each do |op|
              service.create_mapping_rule(op.mapping_rule)
              puts "Created #{op.http_method} #{op.pattern} endpoint"
            end
          end
        end
      end
    end
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
3scale_toolbox-0.17.1 lib/3scale_toolbox/commands/import_command/openapi/create_mapping_rule_step.rb
3scale_toolbox-0.17.0 lib/3scale_toolbox/commands/import_command/openapi/create_mapping_rule_step.rb
3scale_toolbox-0.16.0 lib/3scale_toolbox/commands/import_command/openapi/create_mapping_rule_step.rb
3scale_toolbox-0.15.0 lib/3scale_toolbox/commands/import_command/openapi/create_mapping_rule_step.rb
3scale_toolbox-0.14.0 lib/3scale_toolbox/commands/import_command/openapi/create_mapping_rule_step.rb
3scale_toolbox-0.13.0 lib/3scale_toolbox/commands/import_command/openapi/create_mapping_rule_step.rb
3scale_toolbox-0.12.4 lib/3scale_toolbox/commands/import_command/openapi/create_mapping_rule_step.rb
3scale_toolbox-0.12.3 lib/3scale_toolbox/commands/import_command/openapi/create_mapping_rule_step.rb
3scale_toolbox-0.12.2 lib/3scale_toolbox/commands/import_command/openapi/create_mapping_rule_step.rb
3scale_toolbox-0.11.0 lib/3scale_toolbox/commands/import_command/openapi/create_mapping_rule_step.rb
3scale_toolbox-0.10.0 lib/3scale_toolbox/commands/import_command/openapi/create_mapping_rule_step.rb
3scale_toolbox-0.9.0 lib/3scale_toolbox/commands/import_command/openapi/create_mapping_rule_step.rb
3scale_toolbox-0.8.0 lib/3scale_toolbox/commands/import_command/openapi/create_mapping_rule_step.rb
3scale_toolbox-0.7.0 lib/3scale_toolbox/commands/import_command/openapi/create_mapping_rule_step.rb
3scale_toolbox-0.6.0 lib/3scale_toolbox/commands/import_command/openapi/create_mapping_rule_step.rb