diff --git a/build_tools/aws-sdk-code-generator/lib/aws-sdk-code-generator/views/errors_module.rb b/build_tools/aws-sdk-code-generator/lib/aws-sdk-code-generator/views/errors_module.rb index 94360550a97..47ee5028488 100644 --- a/build_tools/aws-sdk-code-generator/lib/aws-sdk-code-generator/views/errors_module.rb +++ b/build_tools/aws-sdk-code-generator/lib/aws-sdk-code-generator/views/errors_module.rb @@ -23,10 +23,27 @@ def generated_src_warning GENERATED_SRC_WARNING end + # @return [String] def module_name @service.module_name end + # @return [Boolean] + def customization_file_exists? + File.exist?("gems/aws-sdk-#{gem_name}/lib/aws-sdk-#{gem_name}/customizations/errors.rb") + end + + # @return [String] + def customization_file_path + "aws-sdk-#{gem_name}/customizations/errors" + end + + private + + # @return [String] + def gem_name + module_name.split('::').last.downcase + end end end end diff --git a/build_tools/aws-sdk-code-generator/lib/aws-sdk-code-generator/views/resource_class.rb b/build_tools/aws-sdk-code-generator/lib/aws-sdk-code-generator/views/resource_class.rb index 09e2ee9465b..4791d28a1c7 100644 --- a/build_tools/aws-sdk-code-generator/lib/aws-sdk-code-generator/views/resource_class.rb +++ b/build_tools/aws-sdk-code-generator/lib/aws-sdk-code-generator/views/resource_class.rb @@ -106,8 +106,26 @@ def identifiers? @identifiers.size > 0 end + # @return [Boolean] + def customization_file_exists? + File.exist?("gems/#{gem_name}/lib/#{gem_name}/customizations/#{underscored_name}.rb") + end + + # @return [String] + def resource_customization + "#{gem_name}/customizations/#{underscored_name}" + end + private + def gem_name + "aws-sdk-#{module_name.split('::').last.downcase}" + end + + def underscored_name + class_name.gsub(/([a-z])([A-Z])/, '\1_\2').downcase + end + def build_associations(options) ResourceAssociation.build_list( class_name: options.fetch(:class_name), diff --git a/build_tools/aws-sdk-code-generator/lib/aws-sdk-code-generator/views/root_resource_class.rb b/build_tools/aws-sdk-code-generator/lib/aws-sdk-code-generator/views/root_resource_class.rb index 9540769d608..a88040448ab 100644 --- a/build_tools/aws-sdk-code-generator/lib/aws-sdk-code-generator/views/root_resource_class.rb +++ b/build_tools/aws-sdk-code-generator/lib/aws-sdk-code-generator/views/root_resource_class.rb @@ -18,6 +18,7 @@ def initialize(options) paginators: options.fetch(:paginators) ) @custom = options.fetch(:custom) + @name = @module_name.split('::').last.downcase end # @return [String] @@ -53,6 +54,16 @@ def documentation? actions? || associations? end + # @return [Boolean] + def customization_file_exists? + File.exist?("gems/aws-sdk-#{@name}/lib/aws-sdk-#{@name}/customizations/resource.rb") + end + + # @return [String] + def customization_file_path + "aws-sdk-#{@name}/customizations/resource" + end + end end end diff --git a/build_tools/aws-sdk-code-generator/lib/aws-sdk-code-generator/views/service_module.rb b/build_tools/aws-sdk-code-generator/lib/aws-sdk-code-generator/views/service_module.rb index b78f133c7a3..fe550d795f0 100644 --- a/build_tools/aws-sdk-code-generator/lib/aws-sdk-code-generator/views/service_module.rb +++ b/build_tools/aws-sdk-code-generator/lib/aws-sdk-code-generator/views/service_module.rb @@ -11,7 +11,7 @@ class ServiceModule < View def initialize(options) @service = options.fetch(:service) @prefix = options.fetch(:prefix) - @codegenerated_plugins = options.fetch(:codegenerated_plugins) + @codegenerated_plugins = options.fetch(:codegenerated_plugins) || [] end # @return [String|nil] @@ -61,15 +61,13 @@ def require_core_guard? end # @return [Array] - def relative_requires + def autoloads paths = Set.new paths << "#{@prefix}/types" paths << "#{@prefix}/client_api" # these must be required before the client - if @codegenerated_plugins - paths += @codegenerated_plugins.map { | p| p.path } - end + paths += @codegenerated_plugins.map { |p| p.path } paths << "#{@prefix}/client" paths << "#{@prefix}/errors" @@ -94,13 +92,32 @@ def relative_requires end paths << "#{@prefix}/customizations" if @service.api['metadata']['protocolSettings'] && - @service.api['metadata']['protocolSettings']['h2'] == 'eventstream' + @service.api['metadata']['protocolSettings']['h2'] == 'eventstream' paths << "#{@prefix}/async_client" paths << "#{@prefix}/event_streams" elsif eventstream_shape? paths << "#{@prefix}/event_streams" end - paths.to_a + + plugin_paths = @codegenerated_plugins.map { |p| [p.path, p] }.to_h || {} + + results = paths.map do |path| + class_name = File.basename(path).split('.').first.split('_').map(&:capitalize).join + + # Handle the Db -> DB case for AWS database-related constants + class_name = class_name.gsub(/Db(?=[A-Z]|$)/, 'DB') + { + file_path: path, + class_name: class_name, + is_plugin: plugin_paths.key?(path) + } + end + + results.reject { |r| r[:class_name].include?('Customizations') } + end + + def service_identifier + @prefix end def example_var_name @@ -109,6 +126,7 @@ def example_var_name def example_operation_name raise "no operations found for the service" if @service.api['operations'].empty? + underscore(@service.api['operations'].keys.first) end diff --git a/build_tools/aws-sdk-code-generator/lib/aws-sdk-code-generator/views/types_module.rb b/build_tools/aws-sdk-code-generator/lib/aws-sdk-code-generator/views/types_module.rb index 492c9e76faa..7b47bae61b8 100644 --- a/build_tools/aws-sdk-code-generator/lib/aws-sdk-code-generator/views/types_module.rb +++ b/build_tools/aws-sdk-code-generator/lib/aws-sdk-code-generator/views/types_module.rb @@ -80,8 +80,20 @@ def eventstreams end end + # @return [Array] + def types_customizations + Dir.glob(File.join("gems/#{gem_name}/lib/#{gem_name}/customizations/types", '*.rb')).map do |file| + filename = File.basename(file, '.rb') + "#{gem_name}/customizations/types/#{filename}" + end + end + private + def gem_name + "aws-sdk-#{module_name.split('::').last.downcase}" + end + def struct_members(shape) return if shape['members'].nil? members = shape['members'].map do |member_name, member_ref| diff --git a/build_tools/aws-sdk-code-generator/templates/client_api_module.mustache b/build_tools/aws-sdk-code-generator/templates/client_api_module.mustache index c2d3b37d280..2e942848cf6 100644 --- a/build_tools/aws-sdk-code-generator/templates/client_api_module.mustache +++ b/build_tools/aws-sdk-code-generator/templates/client_api_module.mustache @@ -3,6 +3,9 @@ {{#generated_src_warning}} {{generated_src_warning}} {{/generated_src_warning}} + +require_relative 'types' + module {{module_name}} # @api private module ClientApi diff --git a/build_tools/aws-sdk-code-generator/templates/errors_module.mustache b/build_tools/aws-sdk-code-generator/templates/errors_module.mustache index f73c0484d8c..74ea2c830b5 100644 --- a/build_tools/aws-sdk-code-generator/templates/errors_module.mustache +++ b/build_tools/aws-sdk-code-generator/templates/errors_module.mustache @@ -68,3 +68,8 @@ module {{module_name}} {{/errors}} end end +{{#customization_file_exists?}} + +# Load customizations if they exist +require '{{customization_file_path}}' +{{/customization_file_exists?}} diff --git a/build_tools/aws-sdk-code-generator/templates/resource_class.mustache b/build_tools/aws-sdk-code-generator/templates/resource_class.mustache index 9a4e40074e8..a0809c86a6f 100644 --- a/build_tools/aws-sdk-code-generator/templates/resource_class.mustache +++ b/build_tools/aws-sdk-code-generator/templates/resource_class.mustache @@ -304,3 +304,8 @@ module {{module_name}} {{/batch_actions?}} end end +{{#customization_file_exists?}} + +# Load customizations if they exist +require '{{resource_customization}}' +{{/customization_file_exists?}} diff --git a/build_tools/aws-sdk-code-generator/templates/root_resource_class.mustache b/build_tools/aws-sdk-code-generator/templates/root_resource_class.mustache index 6c5e437435e..2e81a762f41 100644 --- a/build_tools/aws-sdk-code-generator/templates/root_resource_class.mustache +++ b/build_tools/aws-sdk-code-generator/templates/root_resource_class.mustache @@ -49,3 +49,8 @@ module {{module_name}} end end +{{#customization_file_exists?}} + +# Load customizations if they exist +require '{{customization_file_path}}' +{{/customization_file_exists?}} diff --git a/build_tools/aws-sdk-code-generator/templates/service_module.mustache b/build_tools/aws-sdk-code-generator/templates/service_module.mustache index da90252cc0e..4fdb03fea67 100644 --- a/build_tools/aws-sdk-code-generator/templates/service_module.mustache +++ b/build_tools/aws-sdk-code-generator/templates/service_module.mustache @@ -17,9 +17,8 @@ require '{{.}}' {{/requires}} {{/require_core_guard?}} -{{#relative_requires}} -require_relative '{{.}}' -{{/relative_requires}} +require_relative '{{service_identifier}}/customizations' +require_relative '{{service_identifier}}/railtie' if defined?(Rails::Railtie) # This module provides support for {{full_name}}. This module is available in the # `{{gem_name}}` gem. @@ -52,6 +51,16 @@ require_relative '{{.}}' # # @!group service module {{module_name}} + {{#autoloads}} + {{#is_plugin}} + module Plugins + autoload :{{class_name}}, '{{file_path}}' + end + {{/is_plugin}} + {{^is_plugin}} + autoload :{{class_name}}, '{{file_path}}' + {{/is_plugin}} + {{/autoloads}} GEM_VERSION = '{{gem_version}}' diff --git a/build_tools/aws-sdk-code-generator/templates/types_module.mustache b/build_tools/aws-sdk-code-generator/templates/types_module.mustache index 0fab503b64a..6844b31963f 100644 --- a/build_tools/aws-sdk-code-generator/templates/types_module.mustache +++ b/build_tools/aws-sdk-code-generator/templates/types_module.mustache @@ -51,3 +51,6 @@ module {{module_name}} end end +{{#types_customizations}} +require "{{.}}" +{{/types_customizations}} diff --git a/gems/aws-sdk-accessanalyzer/lib/aws-sdk-accessanalyzer/railtie.rb b/gems/aws-sdk-accessanalyzer/lib/aws-sdk-accessanalyzer/railtie.rb new file mode 100644 index 00000000000..1934cf8dcab --- /dev/null +++ b/gems/aws-sdk-accessanalyzer/lib/aws-sdk-accessanalyzer/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module AccessAnalyzer + class Railtie < Rails::Railtie + initializer 'aws-sdk-accessanalyzer.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::AccessAnalyzer + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-account/lib/aws-sdk-account/railtie.rb b/gems/aws-sdk-account/lib/aws-sdk-account/railtie.rb new file mode 100644 index 00000000000..191a70a24ed --- /dev/null +++ b/gems/aws-sdk-account/lib/aws-sdk-account/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module Account + class Railtie < Rails::Railtie + initializer 'aws-sdk-account.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::Account + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-acm/lib/aws-sdk-acm/railtie.rb b/gems/aws-sdk-acm/lib/aws-sdk-acm/railtie.rb new file mode 100644 index 00000000000..c9d5d395ae6 --- /dev/null +++ b/gems/aws-sdk-acm/lib/aws-sdk-acm/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module ACM + class Railtie < Rails::Railtie + initializer 'aws-sdk-acm.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::ACM + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-acmpca/lib/aws-sdk-acmpca/railtie.rb b/gems/aws-sdk-acmpca/lib/aws-sdk-acmpca/railtie.rb new file mode 100644 index 00000000000..e277340c42a --- /dev/null +++ b/gems/aws-sdk-acmpca/lib/aws-sdk-acmpca/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module ACMPCA + class Railtie < Rails::Railtie + initializer 'aws-sdk-acmpca.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::ACMPCA + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-amplify/lib/aws-sdk-amplify/railtie.rb b/gems/aws-sdk-amplify/lib/aws-sdk-amplify/railtie.rb new file mode 100644 index 00000000000..0c638590687 --- /dev/null +++ b/gems/aws-sdk-amplify/lib/aws-sdk-amplify/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module Amplify + class Railtie < Rails::Railtie + initializer 'aws-sdk-amplify.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::Amplify + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-amplifybackend/lib/aws-sdk-amplifybackend/railtie.rb b/gems/aws-sdk-amplifybackend/lib/aws-sdk-amplifybackend/railtie.rb new file mode 100644 index 00000000000..c68f264fa84 --- /dev/null +++ b/gems/aws-sdk-amplifybackend/lib/aws-sdk-amplifybackend/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module AmplifyBackend + class Railtie < Rails::Railtie + initializer 'aws-sdk-amplifybackend.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::AmplifyBackend + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-amplifyuibuilder/lib/aws-sdk-amplifyuibuilder/railtie.rb b/gems/aws-sdk-amplifyuibuilder/lib/aws-sdk-amplifyuibuilder/railtie.rb new file mode 100644 index 00000000000..9451dc37475 --- /dev/null +++ b/gems/aws-sdk-amplifyuibuilder/lib/aws-sdk-amplifyuibuilder/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module AmplifyUIBuilder + class Railtie < Rails::Railtie + initializer 'aws-sdk-amplifyuibuilder.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::AmplifyUIBuilder + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-apigateway/lib/aws-sdk-apigateway/railtie.rb b/gems/aws-sdk-apigateway/lib/aws-sdk-apigateway/railtie.rb new file mode 100644 index 00000000000..c53e7b56c67 --- /dev/null +++ b/gems/aws-sdk-apigateway/lib/aws-sdk-apigateway/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module APIGateway + class Railtie < Rails::Railtie + initializer 'aws-sdk-apigateway.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::APIGateway + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-apigatewaymanagementapi/lib/aws-sdk-apigatewaymanagementapi/railtie.rb b/gems/aws-sdk-apigatewaymanagementapi/lib/aws-sdk-apigatewaymanagementapi/railtie.rb new file mode 100644 index 00000000000..3d9c7440044 --- /dev/null +++ b/gems/aws-sdk-apigatewaymanagementapi/lib/aws-sdk-apigatewaymanagementapi/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module ApiGatewayManagementApi + class Railtie < Rails::Railtie + initializer 'aws-sdk-apigatewaymanagementapi.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::ApiGatewayManagementApi + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-apigatewayv2/lib/aws-sdk-apigatewayv2/railtie.rb b/gems/aws-sdk-apigatewayv2/lib/aws-sdk-apigatewayv2/railtie.rb new file mode 100644 index 00000000000..baf6fb0fdd2 --- /dev/null +++ b/gems/aws-sdk-apigatewayv2/lib/aws-sdk-apigatewayv2/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module ApiGatewayV2 + class Railtie < Rails::Railtie + initializer 'aws-sdk-apigatewayv2.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::ApiGatewayV2 + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-appconfig/lib/aws-sdk-appconfig/railtie.rb b/gems/aws-sdk-appconfig/lib/aws-sdk-appconfig/railtie.rb new file mode 100644 index 00000000000..0e2b9a0f479 --- /dev/null +++ b/gems/aws-sdk-appconfig/lib/aws-sdk-appconfig/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module AppConfig + class Railtie < Rails::Railtie + initializer 'aws-sdk-appconfig.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::AppConfig + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-appconfigdata/lib/aws-sdk-appconfigdata/railtie.rb b/gems/aws-sdk-appconfigdata/lib/aws-sdk-appconfigdata/railtie.rb new file mode 100644 index 00000000000..a117ee4cf38 --- /dev/null +++ b/gems/aws-sdk-appconfigdata/lib/aws-sdk-appconfigdata/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module AppConfigData + class Railtie < Rails::Railtie + initializer 'aws-sdk-appconfigdata.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::AppConfigData + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-appfabric/lib/aws-sdk-appfabric/railtie.rb b/gems/aws-sdk-appfabric/lib/aws-sdk-appfabric/railtie.rb new file mode 100644 index 00000000000..a549cb85572 --- /dev/null +++ b/gems/aws-sdk-appfabric/lib/aws-sdk-appfabric/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module AppFabric + class Railtie < Rails::Railtie + initializer 'aws-sdk-appfabric.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::AppFabric + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-appflow/lib/aws-sdk-appflow/railtie.rb b/gems/aws-sdk-appflow/lib/aws-sdk-appflow/railtie.rb new file mode 100644 index 00000000000..5f85b7a7e71 --- /dev/null +++ b/gems/aws-sdk-appflow/lib/aws-sdk-appflow/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module Appflow + class Railtie < Rails::Railtie + initializer 'aws-sdk-appflow.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::Appflow + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-appintegrationsservice/lib/aws-sdk-appintegrationsservice/railtie.rb b/gems/aws-sdk-appintegrationsservice/lib/aws-sdk-appintegrationsservice/railtie.rb new file mode 100644 index 00000000000..ca0b5ef5f03 --- /dev/null +++ b/gems/aws-sdk-appintegrationsservice/lib/aws-sdk-appintegrationsservice/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module AppIntegrationsService + class Railtie < Rails::Railtie + initializer 'aws-sdk-appintegrationsservice.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::AppIntegrationsService + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-applicationautoscaling/lib/aws-sdk-applicationautoscaling/railtie.rb b/gems/aws-sdk-applicationautoscaling/lib/aws-sdk-applicationautoscaling/railtie.rb new file mode 100644 index 00000000000..5da8a84cc22 --- /dev/null +++ b/gems/aws-sdk-applicationautoscaling/lib/aws-sdk-applicationautoscaling/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module ApplicationAutoScaling + class Railtie < Rails::Railtie + initializer 'aws-sdk-applicationautoscaling.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::ApplicationAutoScaling + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-applicationcostprofiler/lib/aws-sdk-applicationcostprofiler/railtie.rb b/gems/aws-sdk-applicationcostprofiler/lib/aws-sdk-applicationcostprofiler/railtie.rb new file mode 100644 index 00000000000..81e4fe03338 --- /dev/null +++ b/gems/aws-sdk-applicationcostprofiler/lib/aws-sdk-applicationcostprofiler/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module ApplicationCostProfiler + class Railtie < Rails::Railtie + initializer 'aws-sdk-applicationcostprofiler.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::ApplicationCostProfiler + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-applicationdiscoveryservice/lib/aws-sdk-applicationdiscoveryservice/railtie.rb b/gems/aws-sdk-applicationdiscoveryservice/lib/aws-sdk-applicationdiscoveryservice/railtie.rb new file mode 100644 index 00000000000..3088fe08e05 --- /dev/null +++ b/gems/aws-sdk-applicationdiscoveryservice/lib/aws-sdk-applicationdiscoveryservice/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module ApplicationDiscoveryService + class Railtie < Rails::Railtie + initializer 'aws-sdk-applicationdiscoveryservice.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::ApplicationDiscoveryService + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-applicationinsights/lib/aws-sdk-applicationinsights/railtie.rb b/gems/aws-sdk-applicationinsights/lib/aws-sdk-applicationinsights/railtie.rb new file mode 100644 index 00000000000..c4ca34668e9 --- /dev/null +++ b/gems/aws-sdk-applicationinsights/lib/aws-sdk-applicationinsights/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module ApplicationInsights + class Railtie < Rails::Railtie + initializer 'aws-sdk-applicationinsights.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::ApplicationInsights + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-applicationsignals/lib/aws-sdk-applicationsignals/railtie.rb b/gems/aws-sdk-applicationsignals/lib/aws-sdk-applicationsignals/railtie.rb new file mode 100644 index 00000000000..46f675f4438 --- /dev/null +++ b/gems/aws-sdk-applicationsignals/lib/aws-sdk-applicationsignals/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module ApplicationSignals + class Railtie < Rails::Railtie + initializer 'aws-sdk-applicationsignals.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::ApplicationSignals + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-appmesh/lib/aws-sdk-appmesh/railtie.rb b/gems/aws-sdk-appmesh/lib/aws-sdk-appmesh/railtie.rb new file mode 100644 index 00000000000..0f616d60628 --- /dev/null +++ b/gems/aws-sdk-appmesh/lib/aws-sdk-appmesh/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module AppMesh + class Railtie < Rails::Railtie + initializer 'aws-sdk-appmesh.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::AppMesh + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-appregistry/lib/aws-sdk-appregistry/railtie.rb b/gems/aws-sdk-appregistry/lib/aws-sdk-appregistry/railtie.rb new file mode 100644 index 00000000000..3f8c34e07ee --- /dev/null +++ b/gems/aws-sdk-appregistry/lib/aws-sdk-appregistry/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module AppRegistry + class Railtie < Rails::Railtie + initializer 'aws-sdk-appregistry.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::AppRegistry + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-apprunner/lib/aws-sdk-apprunner/railtie.rb b/gems/aws-sdk-apprunner/lib/aws-sdk-apprunner/railtie.rb new file mode 100644 index 00000000000..623179f8428 --- /dev/null +++ b/gems/aws-sdk-apprunner/lib/aws-sdk-apprunner/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module AppRunner + class Railtie < Rails::Railtie + initializer 'aws-sdk-apprunner.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::AppRunner + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-appstream/lib/aws-sdk-appstream/railtie.rb b/gems/aws-sdk-appstream/lib/aws-sdk-appstream/railtie.rb new file mode 100644 index 00000000000..a72241dcffd --- /dev/null +++ b/gems/aws-sdk-appstream/lib/aws-sdk-appstream/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module AppStream + class Railtie < Rails::Railtie + initializer 'aws-sdk-appstream.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::AppStream + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-appsync/lib/aws-sdk-appsync/railtie.rb b/gems/aws-sdk-appsync/lib/aws-sdk-appsync/railtie.rb new file mode 100644 index 00000000000..46446e810f0 --- /dev/null +++ b/gems/aws-sdk-appsync/lib/aws-sdk-appsync/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module AppSync + class Railtie < Rails::Railtie + initializer 'aws-sdk-appsync.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::AppSync + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-apptest/lib/aws-sdk-apptest/railtie.rb b/gems/aws-sdk-apptest/lib/aws-sdk-apptest/railtie.rb new file mode 100644 index 00000000000..dccff9b330e --- /dev/null +++ b/gems/aws-sdk-apptest/lib/aws-sdk-apptest/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module AppTest + class Railtie < Rails::Railtie + initializer 'aws-sdk-apptest.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::AppTest + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-arczonalshift/lib/aws-sdk-arczonalshift/railtie.rb b/gems/aws-sdk-arczonalshift/lib/aws-sdk-arczonalshift/railtie.rb new file mode 100644 index 00000000000..09dbc4987a4 --- /dev/null +++ b/gems/aws-sdk-arczonalshift/lib/aws-sdk-arczonalshift/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module ARCZonalShift + class Railtie < Rails::Railtie + initializer 'aws-sdk-arczonalshift.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::ARCZonalShift + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-artifact/lib/aws-sdk-artifact/railtie.rb b/gems/aws-sdk-artifact/lib/aws-sdk-artifact/railtie.rb new file mode 100644 index 00000000000..c280ca94ed4 --- /dev/null +++ b/gems/aws-sdk-artifact/lib/aws-sdk-artifact/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module Artifact + class Railtie < Rails::Railtie + initializer 'aws-sdk-artifact.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::Artifact + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-athena/lib/aws-sdk-athena/railtie.rb b/gems/aws-sdk-athena/lib/aws-sdk-athena/railtie.rb new file mode 100644 index 00000000000..0d6818961d9 --- /dev/null +++ b/gems/aws-sdk-athena/lib/aws-sdk-athena/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module Athena + class Railtie < Rails::Railtie + initializer 'aws-sdk-athena.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::Athena + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-auditmanager/lib/aws-sdk-auditmanager/railtie.rb b/gems/aws-sdk-auditmanager/lib/aws-sdk-auditmanager/railtie.rb new file mode 100644 index 00000000000..326aa02b098 --- /dev/null +++ b/gems/aws-sdk-auditmanager/lib/aws-sdk-auditmanager/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module AuditManager + class Railtie < Rails::Railtie + initializer 'aws-sdk-auditmanager.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::AuditManager + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-augmentedairuntime/lib/aws-sdk-augmentedairuntime/railtie.rb b/gems/aws-sdk-augmentedairuntime/lib/aws-sdk-augmentedairuntime/railtie.rb new file mode 100644 index 00000000000..09ae750feac --- /dev/null +++ b/gems/aws-sdk-augmentedairuntime/lib/aws-sdk-augmentedairuntime/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module AugmentedAIRuntime + class Railtie < Rails::Railtie + initializer 'aws-sdk-augmentedairuntime.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::AugmentedAIRuntime + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-autoscaling/lib/aws-sdk-autoscaling/railtie.rb b/gems/aws-sdk-autoscaling/lib/aws-sdk-autoscaling/railtie.rb new file mode 100644 index 00000000000..e2e283afa52 --- /dev/null +++ b/gems/aws-sdk-autoscaling/lib/aws-sdk-autoscaling/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module AutoScaling + class Railtie < Rails::Railtie + initializer 'aws-sdk-autoscaling.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::AutoScaling + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-autoscalingplans/lib/aws-sdk-autoscalingplans/railtie.rb b/gems/aws-sdk-autoscalingplans/lib/aws-sdk-autoscalingplans/railtie.rb new file mode 100644 index 00000000000..8334514f68c --- /dev/null +++ b/gems/aws-sdk-autoscalingplans/lib/aws-sdk-autoscalingplans/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module AutoScalingPlans + class Railtie < Rails::Railtie + initializer 'aws-sdk-autoscalingplans.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::AutoScalingPlans + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-b2bi/lib/aws-sdk-b2bi/railtie.rb b/gems/aws-sdk-b2bi/lib/aws-sdk-b2bi/railtie.rb new file mode 100644 index 00000000000..86a9d626cde --- /dev/null +++ b/gems/aws-sdk-b2bi/lib/aws-sdk-b2bi/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module B2bi + class Railtie < Rails::Railtie + initializer 'aws-sdk-b2bi.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::B2bi + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-backup/lib/aws-sdk-backup/railtie.rb b/gems/aws-sdk-backup/lib/aws-sdk-backup/railtie.rb new file mode 100644 index 00000000000..26c54ed9662 --- /dev/null +++ b/gems/aws-sdk-backup/lib/aws-sdk-backup/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module Backup + class Railtie < Rails::Railtie + initializer 'aws-sdk-backup.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::Backup + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-backupgateway/lib/aws-sdk-backupgateway/railtie.rb b/gems/aws-sdk-backupgateway/lib/aws-sdk-backupgateway/railtie.rb new file mode 100644 index 00000000000..2541a15f962 --- /dev/null +++ b/gems/aws-sdk-backupgateway/lib/aws-sdk-backupgateway/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module BackupGateway + class Railtie < Rails::Railtie + initializer 'aws-sdk-backupgateway.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::BackupGateway + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-batch/lib/aws-sdk-batch/railtie.rb b/gems/aws-sdk-batch/lib/aws-sdk-batch/railtie.rb new file mode 100644 index 00000000000..acd9b39c118 --- /dev/null +++ b/gems/aws-sdk-batch/lib/aws-sdk-batch/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module Batch + class Railtie < Rails::Railtie + initializer 'aws-sdk-batch.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::Batch + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-bcmdataexports/lib/aws-sdk-bcmdataexports/railtie.rb b/gems/aws-sdk-bcmdataexports/lib/aws-sdk-bcmdataexports/railtie.rb new file mode 100644 index 00000000000..098aa9ed3dc --- /dev/null +++ b/gems/aws-sdk-bcmdataexports/lib/aws-sdk-bcmdataexports/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module BCMDataExports + class Railtie < Rails::Railtie + initializer 'aws-sdk-bcmdataexports.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::BCMDataExports + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-bedrock/lib/aws-sdk-bedrock/railtie.rb b/gems/aws-sdk-bedrock/lib/aws-sdk-bedrock/railtie.rb new file mode 100644 index 00000000000..909396a3293 --- /dev/null +++ b/gems/aws-sdk-bedrock/lib/aws-sdk-bedrock/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module Bedrock + class Railtie < Rails::Railtie + initializer 'aws-sdk-bedrock.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::Bedrock + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-bedrockagent/lib/aws-sdk-bedrockagent/railtie.rb b/gems/aws-sdk-bedrockagent/lib/aws-sdk-bedrockagent/railtie.rb new file mode 100644 index 00000000000..ef71ec45c5b --- /dev/null +++ b/gems/aws-sdk-bedrockagent/lib/aws-sdk-bedrockagent/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module BedrockAgent + class Railtie < Rails::Railtie + initializer 'aws-sdk-bedrockagent.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::BedrockAgent + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-bedrockagentruntime/lib/aws-sdk-bedrockagentruntime/railtie.rb b/gems/aws-sdk-bedrockagentruntime/lib/aws-sdk-bedrockagentruntime/railtie.rb new file mode 100644 index 00000000000..b0d497c254b --- /dev/null +++ b/gems/aws-sdk-bedrockagentruntime/lib/aws-sdk-bedrockagentruntime/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module BedrockAgentRuntime + class Railtie < Rails::Railtie + initializer 'aws-sdk-bedrockagentruntime.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::BedrockAgentRuntime + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-bedrockruntime/lib/aws-sdk-bedrockruntime/railtie.rb b/gems/aws-sdk-bedrockruntime/lib/aws-sdk-bedrockruntime/railtie.rb new file mode 100644 index 00000000000..e7ddc4fd29e --- /dev/null +++ b/gems/aws-sdk-bedrockruntime/lib/aws-sdk-bedrockruntime/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module BedrockRuntime + class Railtie < Rails::Railtie + initializer 'aws-sdk-bedrockruntime.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::BedrockRuntime + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-billingconductor/lib/aws-sdk-billingconductor/railtie.rb b/gems/aws-sdk-billingconductor/lib/aws-sdk-billingconductor/railtie.rb new file mode 100644 index 00000000000..6d8a941ecca --- /dev/null +++ b/gems/aws-sdk-billingconductor/lib/aws-sdk-billingconductor/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module BillingConductor + class Railtie < Rails::Railtie + initializer 'aws-sdk-billingconductor.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::BillingConductor + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-braket/lib/aws-sdk-braket/railtie.rb b/gems/aws-sdk-braket/lib/aws-sdk-braket/railtie.rb new file mode 100644 index 00000000000..c9701e81cd2 --- /dev/null +++ b/gems/aws-sdk-braket/lib/aws-sdk-braket/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module Braket + class Railtie < Rails::Railtie + initializer 'aws-sdk-braket.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::Braket + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-budgets/lib/aws-sdk-budgets/railtie.rb b/gems/aws-sdk-budgets/lib/aws-sdk-budgets/railtie.rb new file mode 100644 index 00000000000..b9a331ef8c7 --- /dev/null +++ b/gems/aws-sdk-budgets/lib/aws-sdk-budgets/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module Budgets + class Railtie < Rails::Railtie + initializer 'aws-sdk-budgets.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::Budgets + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-chatbot/lib/aws-sdk-chatbot/railtie.rb b/gems/aws-sdk-chatbot/lib/aws-sdk-chatbot/railtie.rb new file mode 100644 index 00000000000..65ffa361ab0 --- /dev/null +++ b/gems/aws-sdk-chatbot/lib/aws-sdk-chatbot/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module Chatbot + class Railtie < Rails::Railtie + initializer 'aws-sdk-chatbot.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::Chatbot + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-chime/lib/aws-sdk-chime/railtie.rb b/gems/aws-sdk-chime/lib/aws-sdk-chime/railtie.rb new file mode 100644 index 00000000000..1c06e179824 --- /dev/null +++ b/gems/aws-sdk-chime/lib/aws-sdk-chime/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module Chime + class Railtie < Rails::Railtie + initializer 'aws-sdk-chime.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::Chime + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-chimesdkidentity/lib/aws-sdk-chimesdkidentity/railtie.rb b/gems/aws-sdk-chimesdkidentity/lib/aws-sdk-chimesdkidentity/railtie.rb new file mode 100644 index 00000000000..4d497a2e267 --- /dev/null +++ b/gems/aws-sdk-chimesdkidentity/lib/aws-sdk-chimesdkidentity/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module ChimeSDKIdentity + class Railtie < Rails::Railtie + initializer 'aws-sdk-chimesdkidentity.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::ChimeSDKIdentity + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-chimesdkmediapipelines/lib/aws-sdk-chimesdkmediapipelines/railtie.rb b/gems/aws-sdk-chimesdkmediapipelines/lib/aws-sdk-chimesdkmediapipelines/railtie.rb new file mode 100644 index 00000000000..fa8871c8799 --- /dev/null +++ b/gems/aws-sdk-chimesdkmediapipelines/lib/aws-sdk-chimesdkmediapipelines/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module ChimeSDKMediaPipelines + class Railtie < Rails::Railtie + initializer 'aws-sdk-chimesdkmediapipelines.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::ChimeSDKMediaPipelines + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-chimesdkmeetings/lib/aws-sdk-chimesdkmeetings/railtie.rb b/gems/aws-sdk-chimesdkmeetings/lib/aws-sdk-chimesdkmeetings/railtie.rb new file mode 100644 index 00000000000..1851e9409c1 --- /dev/null +++ b/gems/aws-sdk-chimesdkmeetings/lib/aws-sdk-chimesdkmeetings/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module ChimeSDKMeetings + class Railtie < Rails::Railtie + initializer 'aws-sdk-chimesdkmeetings.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::ChimeSDKMeetings + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-chimesdkmessaging/lib/aws-sdk-chimesdkmessaging/railtie.rb b/gems/aws-sdk-chimesdkmessaging/lib/aws-sdk-chimesdkmessaging/railtie.rb new file mode 100644 index 00000000000..41e7996a2aa --- /dev/null +++ b/gems/aws-sdk-chimesdkmessaging/lib/aws-sdk-chimesdkmessaging/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module ChimeSDKMessaging + class Railtie < Rails::Railtie + initializer 'aws-sdk-chimesdkmessaging.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::ChimeSDKMessaging + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-chimesdkvoice/lib/aws-sdk-chimesdkvoice/railtie.rb b/gems/aws-sdk-chimesdkvoice/lib/aws-sdk-chimesdkvoice/railtie.rb new file mode 100644 index 00000000000..940e28c3b4d --- /dev/null +++ b/gems/aws-sdk-chimesdkvoice/lib/aws-sdk-chimesdkvoice/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module ChimeSDKVoice + class Railtie < Rails::Railtie + initializer 'aws-sdk-chimesdkvoice.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::ChimeSDKVoice + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-cleanrooms/lib/aws-sdk-cleanrooms/railtie.rb b/gems/aws-sdk-cleanrooms/lib/aws-sdk-cleanrooms/railtie.rb new file mode 100644 index 00000000000..24256ed94f0 --- /dev/null +++ b/gems/aws-sdk-cleanrooms/lib/aws-sdk-cleanrooms/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module CleanRooms + class Railtie < Rails::Railtie + initializer 'aws-sdk-cleanrooms.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::CleanRooms + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-cleanroomsml/lib/aws-sdk-cleanroomsml/railtie.rb b/gems/aws-sdk-cleanroomsml/lib/aws-sdk-cleanroomsml/railtie.rb new file mode 100644 index 00000000000..93bb01234ab --- /dev/null +++ b/gems/aws-sdk-cleanroomsml/lib/aws-sdk-cleanroomsml/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module CleanRoomsML + class Railtie < Rails::Railtie + initializer 'aws-sdk-cleanroomsml.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::CleanRoomsML + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-cloud9/lib/aws-sdk-cloud9/railtie.rb b/gems/aws-sdk-cloud9/lib/aws-sdk-cloud9/railtie.rb new file mode 100644 index 00000000000..2265d7ea712 --- /dev/null +++ b/gems/aws-sdk-cloud9/lib/aws-sdk-cloud9/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module Cloud9 + class Railtie < Rails::Railtie + initializer 'aws-sdk-cloud9.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::Cloud9 + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-cloudcontrolapi/lib/aws-sdk-cloudcontrolapi/railtie.rb b/gems/aws-sdk-cloudcontrolapi/lib/aws-sdk-cloudcontrolapi/railtie.rb new file mode 100644 index 00000000000..05f17767f84 --- /dev/null +++ b/gems/aws-sdk-cloudcontrolapi/lib/aws-sdk-cloudcontrolapi/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module CloudControlApi + class Railtie < Rails::Railtie + initializer 'aws-sdk-cloudcontrolapi.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::CloudControlApi + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-clouddirectory/lib/aws-sdk-clouddirectory/railtie.rb b/gems/aws-sdk-clouddirectory/lib/aws-sdk-clouddirectory/railtie.rb new file mode 100644 index 00000000000..32b0c88f209 --- /dev/null +++ b/gems/aws-sdk-clouddirectory/lib/aws-sdk-clouddirectory/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module CloudDirectory + class Railtie < Rails::Railtie + initializer 'aws-sdk-clouddirectory.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::CloudDirectory + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-cloudformation/lib/aws-sdk-cloudformation/railtie.rb b/gems/aws-sdk-cloudformation/lib/aws-sdk-cloudformation/railtie.rb new file mode 100644 index 00000000000..ef1961e86f5 --- /dev/null +++ b/gems/aws-sdk-cloudformation/lib/aws-sdk-cloudformation/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module CloudFormation + class Railtie < Rails::Railtie + initializer 'aws-sdk-cloudformation.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::CloudFormation + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-cloudfront/lib/aws-sdk-cloudfront/customizations.rb b/gems/aws-sdk-cloudfront/lib/aws-sdk-cloudfront/customizations.rb index 94f58989d45..0fd60e80ab9 100644 --- a/gems/aws-sdk-cloudfront/lib/aws-sdk-cloudfront/customizations.rb +++ b/gems/aws-sdk-cloudfront/lib/aws-sdk-cloudfront/customizations.rb @@ -1,6 +1,10 @@ # frozen_string_literal: true # utility classes -require 'aws-sdk-cloudfront/signer' -require 'aws-sdk-cloudfront/url_signer' -require 'aws-sdk-cloudfront/cookie_signer' +module Aws + module Cloudfront + autoload :Signer, 'aws-sdk-cloudfront/signer' + autoload :UrlSigner, 'aws-sdk-cloudfront/url_signer' + autoload :CookieSigner, 'aws-sdk-cloudfront/cookie_signer' + end +end diff --git a/gems/aws-sdk-cloudfront/lib/aws-sdk-cloudfront/railtie.rb b/gems/aws-sdk-cloudfront/lib/aws-sdk-cloudfront/railtie.rb new file mode 100644 index 00000000000..b583b5442e4 --- /dev/null +++ b/gems/aws-sdk-cloudfront/lib/aws-sdk-cloudfront/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module CloudFront + class Railtie < Rails::Railtie + initializer 'aws-sdk-cloudfront.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::CloudFront + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-cloudfront/spec/cookie_signer_spec.rb b/gems/aws-sdk-cloudfront/spec/cookie_signer_spec.rb index 574946935f7..da123002200 100644 --- a/gems/aws-sdk-cloudfront/spec/cookie_signer_spec.rb +++ b/gems/aws-sdk-cloudfront/spec/cookie_signer_spec.rb @@ -1,6 +1,7 @@ # frozen_string_literal: true require_relative 'spec_helper' +require 'aws-sdk-cloudfront/customizations' module Aws module CloudFront diff --git a/gems/aws-sdk-cloudfront/spec/url_signer_spec.rb b/gems/aws-sdk-cloudfront/spec/url_signer_spec.rb index 926f5a37ea4..06156a44c55 100644 --- a/gems/aws-sdk-cloudfront/spec/url_signer_spec.rb +++ b/gems/aws-sdk-cloudfront/spec/url_signer_spec.rb @@ -1,6 +1,7 @@ # frozen_string_literal: true require_relative 'spec_helper' +require 'aws-sdk-cloudfront/customizations' module Aws module CloudFront diff --git a/gems/aws-sdk-cloudfrontkeyvaluestore/lib/aws-sdk-cloudfrontkeyvaluestore/railtie.rb b/gems/aws-sdk-cloudfrontkeyvaluestore/lib/aws-sdk-cloudfrontkeyvaluestore/railtie.rb new file mode 100644 index 00000000000..cb2df3f73e0 --- /dev/null +++ b/gems/aws-sdk-cloudfrontkeyvaluestore/lib/aws-sdk-cloudfrontkeyvaluestore/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module CloudFrontKeyValueStore + class Railtie < Rails::Railtie + initializer 'aws-sdk-cloudfrontkeyvaluestore.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::CloudFrontKeyValueStore + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-cloudhsm/lib/aws-sdk-cloudhsm/railtie.rb b/gems/aws-sdk-cloudhsm/lib/aws-sdk-cloudhsm/railtie.rb new file mode 100644 index 00000000000..144b7c56841 --- /dev/null +++ b/gems/aws-sdk-cloudhsm/lib/aws-sdk-cloudhsm/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module CloudHSM + class Railtie < Rails::Railtie + initializer 'aws-sdk-cloudhsm.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::CloudHSM + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-cloudhsmv2/lib/aws-sdk-cloudhsmv2/railtie.rb b/gems/aws-sdk-cloudhsmv2/lib/aws-sdk-cloudhsmv2/railtie.rb new file mode 100644 index 00000000000..4e5af01d9ef --- /dev/null +++ b/gems/aws-sdk-cloudhsmv2/lib/aws-sdk-cloudhsmv2/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module CloudHSMV2 + class Railtie < Rails::Railtie + initializer 'aws-sdk-cloudhsmv2.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::CloudHSMV2 + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-cloudsearch/lib/aws-sdk-cloudsearch/railtie.rb b/gems/aws-sdk-cloudsearch/lib/aws-sdk-cloudsearch/railtie.rb new file mode 100644 index 00000000000..35f25cbc5c4 --- /dev/null +++ b/gems/aws-sdk-cloudsearch/lib/aws-sdk-cloudsearch/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module CloudSearch + class Railtie < Rails::Railtie + initializer 'aws-sdk-cloudsearch.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::CloudSearch + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-cloudsearchdomain/lib/aws-sdk-cloudsearchdomain/railtie.rb b/gems/aws-sdk-cloudsearchdomain/lib/aws-sdk-cloudsearchdomain/railtie.rb new file mode 100644 index 00000000000..d5d82cd700e --- /dev/null +++ b/gems/aws-sdk-cloudsearchdomain/lib/aws-sdk-cloudsearchdomain/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module CloudSearchDomain + class Railtie < Rails::Railtie + initializer 'aws-sdk-cloudsearchdomain.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::CloudSearchDomain + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-cloudtrail/lib/aws-sdk-cloudtrail/railtie.rb b/gems/aws-sdk-cloudtrail/lib/aws-sdk-cloudtrail/railtie.rb new file mode 100644 index 00000000000..5320eeca652 --- /dev/null +++ b/gems/aws-sdk-cloudtrail/lib/aws-sdk-cloudtrail/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module CloudTrail + class Railtie < Rails::Railtie + initializer 'aws-sdk-cloudtrail.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::CloudTrail + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-cloudtraildata/lib/aws-sdk-cloudtraildata/railtie.rb b/gems/aws-sdk-cloudtraildata/lib/aws-sdk-cloudtraildata/railtie.rb new file mode 100644 index 00000000000..6b522188498 --- /dev/null +++ b/gems/aws-sdk-cloudtraildata/lib/aws-sdk-cloudtraildata/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module CloudTrailData + class Railtie < Rails::Railtie + initializer 'aws-sdk-cloudtraildata.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::CloudTrailData + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-cloudwatch/lib/aws-sdk-cloudwatch/railtie.rb b/gems/aws-sdk-cloudwatch/lib/aws-sdk-cloudwatch/railtie.rb new file mode 100644 index 00000000000..6265c4d12ba --- /dev/null +++ b/gems/aws-sdk-cloudwatch/lib/aws-sdk-cloudwatch/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module CloudWatch + class Railtie < Rails::Railtie + initializer 'aws-sdk-cloudwatch.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::CloudWatch + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-cloudwatchevents/lib/aws-sdk-cloudwatchevents/railtie.rb b/gems/aws-sdk-cloudwatchevents/lib/aws-sdk-cloudwatchevents/railtie.rb new file mode 100644 index 00000000000..e7e28dfbec0 --- /dev/null +++ b/gems/aws-sdk-cloudwatchevents/lib/aws-sdk-cloudwatchevents/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module CloudWatchEvents + class Railtie < Rails::Railtie + initializer 'aws-sdk-cloudwatchevents.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::CloudWatchEvents + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-cloudwatchevidently/lib/aws-sdk-cloudwatchevidently/railtie.rb b/gems/aws-sdk-cloudwatchevidently/lib/aws-sdk-cloudwatchevidently/railtie.rb new file mode 100644 index 00000000000..9ccac5b9c61 --- /dev/null +++ b/gems/aws-sdk-cloudwatchevidently/lib/aws-sdk-cloudwatchevidently/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module CloudWatchEvidently + class Railtie < Rails::Railtie + initializer 'aws-sdk-cloudwatchevidently.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::CloudWatchEvidently + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-cloudwatchlogs/lib/aws-sdk-cloudwatchlogs/railtie.rb b/gems/aws-sdk-cloudwatchlogs/lib/aws-sdk-cloudwatchlogs/railtie.rb new file mode 100644 index 00000000000..2e1e9fea396 --- /dev/null +++ b/gems/aws-sdk-cloudwatchlogs/lib/aws-sdk-cloudwatchlogs/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module CloudWatchLogs + class Railtie < Rails::Railtie + initializer 'aws-sdk-cloudwatchlogs.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::CloudWatchLogs + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-cloudwatchrum/lib/aws-sdk-cloudwatchrum/railtie.rb b/gems/aws-sdk-cloudwatchrum/lib/aws-sdk-cloudwatchrum/railtie.rb new file mode 100644 index 00000000000..ba62ac72003 --- /dev/null +++ b/gems/aws-sdk-cloudwatchrum/lib/aws-sdk-cloudwatchrum/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module CloudWatchRUM + class Railtie < Rails::Railtie + initializer 'aws-sdk-cloudwatchrum.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::CloudWatchRUM + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-codeartifact/lib/aws-sdk-codeartifact/railtie.rb b/gems/aws-sdk-codeartifact/lib/aws-sdk-codeartifact/railtie.rb new file mode 100644 index 00000000000..a49ae57b21c --- /dev/null +++ b/gems/aws-sdk-codeartifact/lib/aws-sdk-codeartifact/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module CodeArtifact + class Railtie < Rails::Railtie + initializer 'aws-sdk-codeartifact.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::CodeArtifact + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-codebuild/lib/aws-sdk-codebuild/railtie.rb b/gems/aws-sdk-codebuild/lib/aws-sdk-codebuild/railtie.rb new file mode 100644 index 00000000000..a3d1ceecdd7 --- /dev/null +++ b/gems/aws-sdk-codebuild/lib/aws-sdk-codebuild/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module CodeBuild + class Railtie < Rails::Railtie + initializer 'aws-sdk-codebuild.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::CodeBuild + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-codecatalyst/lib/aws-sdk-codecatalyst/railtie.rb b/gems/aws-sdk-codecatalyst/lib/aws-sdk-codecatalyst/railtie.rb new file mode 100644 index 00000000000..7f3bb15f5fb --- /dev/null +++ b/gems/aws-sdk-codecatalyst/lib/aws-sdk-codecatalyst/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module CodeCatalyst + class Railtie < Rails::Railtie + initializer 'aws-sdk-codecatalyst.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::CodeCatalyst + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-codecommit/lib/aws-sdk-codecommit/railtie.rb b/gems/aws-sdk-codecommit/lib/aws-sdk-codecommit/railtie.rb new file mode 100644 index 00000000000..f40fd05e4d7 --- /dev/null +++ b/gems/aws-sdk-codecommit/lib/aws-sdk-codecommit/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module CodeCommit + class Railtie < Rails::Railtie + initializer 'aws-sdk-codecommit.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::CodeCommit + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-codeconnections/lib/aws-sdk-codeconnections/railtie.rb b/gems/aws-sdk-codeconnections/lib/aws-sdk-codeconnections/railtie.rb new file mode 100644 index 00000000000..8747a731681 --- /dev/null +++ b/gems/aws-sdk-codeconnections/lib/aws-sdk-codeconnections/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module CodeConnections + class Railtie < Rails::Railtie + initializer 'aws-sdk-codeconnections.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::CodeConnections + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-codedeploy/lib/aws-sdk-codedeploy/railtie.rb b/gems/aws-sdk-codedeploy/lib/aws-sdk-codedeploy/railtie.rb new file mode 100644 index 00000000000..a733f58c411 --- /dev/null +++ b/gems/aws-sdk-codedeploy/lib/aws-sdk-codedeploy/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module CodeDeploy + class Railtie < Rails::Railtie + initializer 'aws-sdk-codedeploy.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::CodeDeploy + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-codeguruprofiler/lib/aws-sdk-codeguruprofiler/railtie.rb b/gems/aws-sdk-codeguruprofiler/lib/aws-sdk-codeguruprofiler/railtie.rb new file mode 100644 index 00000000000..c38e39826d3 --- /dev/null +++ b/gems/aws-sdk-codeguruprofiler/lib/aws-sdk-codeguruprofiler/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module CodeGuruProfiler + class Railtie < Rails::Railtie + initializer 'aws-sdk-codeguruprofiler.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::CodeGuruProfiler + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-codegurureviewer/lib/aws-sdk-codegurureviewer/railtie.rb b/gems/aws-sdk-codegurureviewer/lib/aws-sdk-codegurureviewer/railtie.rb new file mode 100644 index 00000000000..2c28414a903 --- /dev/null +++ b/gems/aws-sdk-codegurureviewer/lib/aws-sdk-codegurureviewer/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module CodeGuruReviewer + class Railtie < Rails::Railtie + initializer 'aws-sdk-codegurureviewer.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::CodeGuruReviewer + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-codegurusecurity/lib/aws-sdk-codegurusecurity/railtie.rb b/gems/aws-sdk-codegurusecurity/lib/aws-sdk-codegurusecurity/railtie.rb new file mode 100644 index 00000000000..a19e75a561b --- /dev/null +++ b/gems/aws-sdk-codegurusecurity/lib/aws-sdk-codegurusecurity/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module CodeGuruSecurity + class Railtie < Rails::Railtie + initializer 'aws-sdk-codegurusecurity.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::CodeGuruSecurity + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-codepipeline/lib/aws-sdk-codepipeline/railtie.rb b/gems/aws-sdk-codepipeline/lib/aws-sdk-codepipeline/railtie.rb new file mode 100644 index 00000000000..5b15a259cfd --- /dev/null +++ b/gems/aws-sdk-codepipeline/lib/aws-sdk-codepipeline/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module CodePipeline + class Railtie < Rails::Railtie + initializer 'aws-sdk-codepipeline.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::CodePipeline + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-codestar/lib/aws-sdk-codestar/railtie.rb b/gems/aws-sdk-codestar/lib/aws-sdk-codestar/railtie.rb new file mode 100644 index 00000000000..5f4df9de0ca --- /dev/null +++ b/gems/aws-sdk-codestar/lib/aws-sdk-codestar/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module CodeStar + class Railtie < Rails::Railtie + initializer 'aws-sdk-codestar.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::CodeStar + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-codestarconnections/lib/aws-sdk-codestarconnections/railtie.rb b/gems/aws-sdk-codestarconnections/lib/aws-sdk-codestarconnections/railtie.rb new file mode 100644 index 00000000000..19f5a80498f --- /dev/null +++ b/gems/aws-sdk-codestarconnections/lib/aws-sdk-codestarconnections/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module CodeStarconnections + class Railtie < Rails::Railtie + initializer 'aws-sdk-codestarconnections.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::CodeStarconnections + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-codestarnotifications/lib/aws-sdk-codestarnotifications/railtie.rb b/gems/aws-sdk-codestarnotifications/lib/aws-sdk-codestarnotifications/railtie.rb new file mode 100644 index 00000000000..005810a9766 --- /dev/null +++ b/gems/aws-sdk-codestarnotifications/lib/aws-sdk-codestarnotifications/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module CodeStarNotifications + class Railtie < Rails::Railtie + initializer 'aws-sdk-codestarnotifications.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::CodeStarNotifications + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-cognitoidentity/lib/aws-sdk-cognitoidentity/customizations.rb b/gems/aws-sdk-cognitoidentity/lib/aws-sdk-cognitoidentity/customizations.rb index 08d6646c96e..c2820259bec 100644 --- a/gems/aws-sdk-cognitoidentity/lib/aws-sdk-cognitoidentity/customizations.rb +++ b/gems/aws-sdk-cognitoidentity/lib/aws-sdk-cognitoidentity/customizations.rb @@ -1,3 +1,7 @@ # frozen_string_literal: true -require 'aws-sdk-cognitoidentity/customizations/cognito_identity_credentials' \ No newline at end of file +module Aws + module CognitoIdentity + autoload :CognitoIdentityCredentials, 'aws-sdk-cognitoidentity/customizations/cognito_identity_credentials' + end +end diff --git a/gems/aws-sdk-cognitoidentity/lib/aws-sdk-cognitoidentity/railtie.rb b/gems/aws-sdk-cognitoidentity/lib/aws-sdk-cognitoidentity/railtie.rb new file mode 100644 index 00000000000..361bedd08a1 --- /dev/null +++ b/gems/aws-sdk-cognitoidentity/lib/aws-sdk-cognitoidentity/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module CognitoIdentity + class Railtie < Rails::Railtie + initializer 'aws-sdk-cognitoidentity.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::CognitoIdentity + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-cognitoidentityprovider/lib/aws-sdk-cognitoidentityprovider/railtie.rb b/gems/aws-sdk-cognitoidentityprovider/lib/aws-sdk-cognitoidentityprovider/railtie.rb new file mode 100644 index 00000000000..01ad1c33183 --- /dev/null +++ b/gems/aws-sdk-cognitoidentityprovider/lib/aws-sdk-cognitoidentityprovider/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module CognitoIdentityProvider + class Railtie < Rails::Railtie + initializer 'aws-sdk-cognitoidentityprovider.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::CognitoIdentityProvider + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-cognitosync/lib/aws-sdk-cognitosync/railtie.rb b/gems/aws-sdk-cognitosync/lib/aws-sdk-cognitosync/railtie.rb new file mode 100644 index 00000000000..0583b5467ac --- /dev/null +++ b/gems/aws-sdk-cognitosync/lib/aws-sdk-cognitosync/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module CognitoSync + class Railtie < Rails::Railtie + initializer 'aws-sdk-cognitosync.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::CognitoSync + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-comprehend/lib/aws-sdk-comprehend/railtie.rb b/gems/aws-sdk-comprehend/lib/aws-sdk-comprehend/railtie.rb new file mode 100644 index 00000000000..c54dec7038f --- /dev/null +++ b/gems/aws-sdk-comprehend/lib/aws-sdk-comprehend/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module Comprehend + class Railtie < Rails::Railtie + initializer 'aws-sdk-comprehend.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::Comprehend + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-comprehendmedical/lib/aws-sdk-comprehendmedical/railtie.rb b/gems/aws-sdk-comprehendmedical/lib/aws-sdk-comprehendmedical/railtie.rb new file mode 100644 index 00000000000..38b7a3db9f1 --- /dev/null +++ b/gems/aws-sdk-comprehendmedical/lib/aws-sdk-comprehendmedical/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module ComprehendMedical + class Railtie < Rails::Railtie + initializer 'aws-sdk-comprehendmedical.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::ComprehendMedical + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-computeoptimizer/lib/aws-sdk-computeoptimizer/railtie.rb b/gems/aws-sdk-computeoptimizer/lib/aws-sdk-computeoptimizer/railtie.rb new file mode 100644 index 00000000000..4e204c6db85 --- /dev/null +++ b/gems/aws-sdk-computeoptimizer/lib/aws-sdk-computeoptimizer/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module ComputeOptimizer + class Railtie < Rails::Railtie + initializer 'aws-sdk-computeoptimizer.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::ComputeOptimizer + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-configservice/lib/aws-sdk-configservice/railtie.rb b/gems/aws-sdk-configservice/lib/aws-sdk-configservice/railtie.rb new file mode 100644 index 00000000000..bd76d8daa7a --- /dev/null +++ b/gems/aws-sdk-configservice/lib/aws-sdk-configservice/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module ConfigService + class Railtie < Rails::Railtie + initializer 'aws-sdk-configservice.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::ConfigService + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-connect/lib/aws-sdk-connect/railtie.rb b/gems/aws-sdk-connect/lib/aws-sdk-connect/railtie.rb new file mode 100644 index 00000000000..0e54fa7f2e3 --- /dev/null +++ b/gems/aws-sdk-connect/lib/aws-sdk-connect/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module Connect + class Railtie < Rails::Railtie + initializer 'aws-sdk-connect.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::Connect + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-connectcampaignservice/lib/aws-sdk-connectcampaignservice/railtie.rb b/gems/aws-sdk-connectcampaignservice/lib/aws-sdk-connectcampaignservice/railtie.rb new file mode 100644 index 00000000000..783c696a9b5 --- /dev/null +++ b/gems/aws-sdk-connectcampaignservice/lib/aws-sdk-connectcampaignservice/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module ConnectCampaignService + class Railtie < Rails::Railtie + initializer 'aws-sdk-connectcampaignservice.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::ConnectCampaignService + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-connectcases/lib/aws-sdk-connectcases/railtie.rb b/gems/aws-sdk-connectcases/lib/aws-sdk-connectcases/railtie.rb new file mode 100644 index 00000000000..ff265fcc07e --- /dev/null +++ b/gems/aws-sdk-connectcases/lib/aws-sdk-connectcases/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module ConnectCases + class Railtie < Rails::Railtie + initializer 'aws-sdk-connectcases.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::ConnectCases + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-connectcontactlens/lib/aws-sdk-connectcontactlens/railtie.rb b/gems/aws-sdk-connectcontactlens/lib/aws-sdk-connectcontactlens/railtie.rb new file mode 100644 index 00000000000..f0bf78d557e --- /dev/null +++ b/gems/aws-sdk-connectcontactlens/lib/aws-sdk-connectcontactlens/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module ConnectContactLens + class Railtie < Rails::Railtie + initializer 'aws-sdk-connectcontactlens.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::ConnectContactLens + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-connectparticipant/lib/aws-sdk-connectparticipant/railtie.rb b/gems/aws-sdk-connectparticipant/lib/aws-sdk-connectparticipant/railtie.rb new file mode 100644 index 00000000000..db83b69983e --- /dev/null +++ b/gems/aws-sdk-connectparticipant/lib/aws-sdk-connectparticipant/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module ConnectParticipant + class Railtie < Rails::Railtie + initializer 'aws-sdk-connectparticipant.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::ConnectParticipant + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-connectwisdomservice/lib/aws-sdk-connectwisdomservice/railtie.rb b/gems/aws-sdk-connectwisdomservice/lib/aws-sdk-connectwisdomservice/railtie.rb new file mode 100644 index 00000000000..ac47d3b79e3 --- /dev/null +++ b/gems/aws-sdk-connectwisdomservice/lib/aws-sdk-connectwisdomservice/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module ConnectWisdomService + class Railtie < Rails::Railtie + initializer 'aws-sdk-connectwisdomservice.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::ConnectWisdomService + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-controlcatalog/lib/aws-sdk-controlcatalog/railtie.rb b/gems/aws-sdk-controlcatalog/lib/aws-sdk-controlcatalog/railtie.rb new file mode 100644 index 00000000000..c017b459851 --- /dev/null +++ b/gems/aws-sdk-controlcatalog/lib/aws-sdk-controlcatalog/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module ControlCatalog + class Railtie < Rails::Railtie + initializer 'aws-sdk-controlcatalog.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::ControlCatalog + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-controltower/lib/aws-sdk-controltower/railtie.rb b/gems/aws-sdk-controltower/lib/aws-sdk-controltower/railtie.rb new file mode 100644 index 00000000000..dc2d0735b58 --- /dev/null +++ b/gems/aws-sdk-controltower/lib/aws-sdk-controltower/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module ControlTower + class Railtie < Rails::Railtie + initializer 'aws-sdk-controltower.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::ControlTower + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-core/lib/aws-sdk-core.rb b/gems/aws-sdk-core/lib/aws-sdk-core.rb index c1c6a45a278..13416d83c39 100644 --- a/gems/aws-sdk-core/lib/aws-sdk-core.rb +++ b/gems/aws-sdk-core/lib/aws-sdk-core.rb @@ -111,7 +111,99 @@ module Aws - CORE_GEM_VERSION = File.read(File.expand_path('../../VERSION', __FILE__)).strip + # tokens and token providers + autoload :Token, 'aws-sdk-core/token' + autoload :TokenProvider, 'aws-sdk-core/token_provider' + autoload :StaticTokenProvider, 'aws-sdk-core/static_token_provider' + autoload :RefreshingToken, 'aws-sdk-core/refreshing_token' + autoload :SSOTokenProvider, 'aws-sdk-core/sso_token_provider' + autoload :TokenProviderChain, 'aws-sdk-core/token_provider_chain' + + module Plugins + autoload :BearerAuthorization, 'aws-sdk-core/plugins/bearer_authorization' + end + + # client modules + autoload :ClientStubs, 'aws-sdk-core/client_stubs' + autoload :AsyncClientStubs, 'aws-sdk-core/async_client_stubs' + autoload :EagerLoader, 'aws-sdk-core/eager_loader' + autoload :Errors, 'aws-sdk-core/errors' + autoload :PageableResponse, 'aws-sdk-core/pageable_response' + autoload :Pager, 'aws-sdk-core/pager' + autoload :ParamConverter, 'aws-sdk-core/param_converter' + autoload :ParamValidator, 'aws-sdk-core/param_validator' + autoload :SharedConfig, 'aws-sdk-core/shared_config' + autoload :Structure, 'aws-sdk-core/structure' + autoload :EmptyStructure, 'aws-sdk-core/structure' + autoload :TypeBuilder, 'aws-sdk-core/type_builder' + autoload :Util, 'aws-sdk-core/util' + + # resource classes + module Resources + autoload :Collection, 'aws-sdk-core/resources/collection' + end + + # logging + module Log + autoload :Formatter, 'aws-sdk-core/log/formatter' + autoload :ParamFilter, 'aws-sdk-core/log/param_filter' + autoload :ParamFormatter, 'aws-sdk-core/log/param_formatter' + end + + # stubbing + module Stubbing + autoload :EmptyStub, 'aws-sdk-core/stubbing/empty_stub' + autoload :DataApplicator, 'aws-sdk-core/stubbing/data_applicator' + autoload :StubData, 'aws-sdk-core/stubbing/stub_data' + autoload :XmlError, 'aws-sdk-core/stubbing/xml_error' + + module Protocols + autoload :Json, 'aws-sdk-core/stubbing/protocols/json' + autoload :Rest, 'aws-sdk-core/stubbing/protocols/rest' + autoload :RestJson, 'aws-sdk-core/stubbing/protocols/rest_json' + autoload :RestXml, 'aws-sdk-core/stubbing/protocols/rest_xml' + autoload :Query, 'aws-sdk-core/stubbing/protocols/query' + autoload :EC2, 'aws-sdk-core/stubbing/protocols/ec2' + autoload :RpcV2, 'aws-sdk-core/stubbing/protocols/rpc_v2' + autoload :ApiGateway, 'aws-sdk-core/stubbing/protocols/api_gateway' + end + end + + # protocols + autoload :ErrorHandler, 'aws-sdk-core/error_handler' + autoload :Rest, 'aws-sdk-core/rest' + autoload :Xml, 'aws-sdk-core/xml' + autoload :Json, 'aws-sdk-core/json' + autoload :Query, 'aws-sdk-core/query' + autoload :RpcV2, 'aws-sdk-core/rpc_v2' + + # event stream + autoload :Binary, 'aws-sdk-core/binary' + autoload :EventEmitter, 'aws-sdk-core/event_emitter' + + # endpoint discovery + autoload :EndpointCache, 'aws-sdk-core/endpoint_cache' + + # client metrics + module ClientSideMonitoring + autoload :RequestMetrics, 'aws-sdk-core/client_side_monitoring/request_metrics' + autoload :Publisher, 'aws-sdk-core/client_side_monitoring/publisher' + end + + # utilities + autoload :ARN, 'aws-sdk-core/arn' + autoload :ARNParser, 'aws-sdk-core/arn_parser' + autoload :EC2Metadata, 'aws-sdk-core/ec2_metadata' + autoload :LRUCache, 'aws-sdk-core/lru_cache' + + # dynamic endpoints + autoload :Endpoints, 'aws-sdk-core/endpoints' + + module Plugins + autoload :SignatureV4, 'aws-sdk-core/plugins/signature_v4' + end + + CORE_GEM_VERSION = File.read(File.expand_path('../VERSION', __dir__)).strip @config = {} diff --git a/gems/aws-sdk-core/lib/aws-sdk-core/railtie.rb b/gems/aws-sdk-core/lib/aws-sdk-core/railtie.rb new file mode 100644 index 00000000000..1bf2e9092ee --- /dev/null +++ b/gems/aws-sdk-core/lib/aws-sdk-core/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module Core + class Railtie < Rails::Railtie + initializer 'aws-sdk-core.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::Core + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-core/lib/aws-sdk-sts/customizations.rb b/gems/aws-sdk-core/lib/aws-sdk-sts/customizations.rb index 9f3daa3f90e..4f13f02deca 100644 --- a/gems/aws-sdk-core/lib/aws-sdk-sts/customizations.rb +++ b/gems/aws-sdk-core/lib/aws-sdk-sts/customizations.rb @@ -1,4 +1,8 @@ # frozen_string_literal: true # utility classes -require 'aws-sdk-sts/presigner' +module Aws + module STS + autoload :Presigner, 'aws-sdk-sts/presigner' + end +end diff --git a/gems/aws-sdk-core/spec/aws/cbor/cbor_engine_spec.rb b/gems/aws-sdk-core/spec/aws/cbor/cbor_engine_spec.rb index cfa75eb4bf3..1a6c8f13138 100644 --- a/gems/aws-sdk-core/spec/aws/cbor/cbor_engine_spec.rb +++ b/gems/aws-sdk-core/spec/aws/cbor/cbor_engine_spec.rb @@ -1,4 +1,5 @@ require_relative '../../spec_helper' +require 'aws-sdk-core/cbor/cbor_engine' module Aws module Cbor @@ -75,4 +76,4 @@ def assert(actual, expected) end end end -end \ No newline at end of file +end diff --git a/gems/aws-sdk-core/spec/aws/cbor/decoder_spec.rb b/gems/aws-sdk-core/spec/aws/cbor/decoder_spec.rb index 1c53353c469..916c005ba9b 100644 --- a/gems/aws-sdk-core/spec/aws/cbor/decoder_spec.rb +++ b/gems/aws-sdk-core/spec/aws/cbor/decoder_spec.rb @@ -1,6 +1,7 @@ # frozen_string_literal: true require_relative '../../spec_helper' +require 'aws-sdk-core/cbor/decoder' module Aws module Cbor diff --git a/gems/aws-sdk-core/spec/aws/cbor/encoder_spec.rb b/gems/aws-sdk-core/spec/aws/cbor/encoder_spec.rb index ce94ba9241a..abf58e2a4cc 100644 --- a/gems/aws-sdk-core/spec/aws/cbor/encoder_spec.rb +++ b/gems/aws-sdk-core/spec/aws/cbor/encoder_spec.rb @@ -1,6 +1,7 @@ # frozen_string_literal: true require_relative '../../spec_helper' +require 'aws-sdk-core/cbor/encoder' module Aws module Cbor diff --git a/gems/aws-sdk-core/spec/aws/cbor_spec.rb b/gems/aws-sdk-core/spec/aws/cbor_spec.rb index 54998f303e4..41213fb665f 100644 --- a/gems/aws-sdk-core/spec/aws/cbor_spec.rb +++ b/gems/aws-sdk-core/spec/aws/cbor_spec.rb @@ -1,6 +1,8 @@ # frozen_string_literal: true require_relative '../spec_helper' +require 'aws-sdk-core/cbor' + module Aws describe Cbor do diff --git a/gems/aws-sdk-core/spec/aws/ini_parser_spec.rb b/gems/aws-sdk-core/spec/aws/ini_parser_spec.rb index a1b453f8186..8507d924d89 100644 --- a/gems/aws-sdk-core/spec/aws/ini_parser_spec.rb +++ b/gems/aws-sdk-core/spec/aws/ini_parser_spec.rb @@ -1,6 +1,8 @@ # frozen_string_literal: true require 'spec_helper' +require 'aws-sdk-core/ini_parser' + module Aws describe IniParser do @@ -38,10 +40,10 @@ module Aws endpoint_url = https://localhost:8000 [profile blank-property] -aws_session_token = -s3 = +aws_session_token = +s3 = region = ap-southeast-1 - blank_sub_property = + blank_sub_property = FILE } diff --git a/gems/aws-sdk-costandusagereportservice/lib/aws-sdk-costandusagereportservice/railtie.rb b/gems/aws-sdk-costandusagereportservice/lib/aws-sdk-costandusagereportservice/railtie.rb new file mode 100644 index 00000000000..1efb5762c88 --- /dev/null +++ b/gems/aws-sdk-costandusagereportservice/lib/aws-sdk-costandusagereportservice/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module CostandUsageReportService + class Railtie < Rails::Railtie + initializer 'aws-sdk-costandusagereportservice.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::CostandUsageReportService + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-costexplorer/lib/aws-sdk-costexplorer/railtie.rb b/gems/aws-sdk-costexplorer/lib/aws-sdk-costexplorer/railtie.rb new file mode 100644 index 00000000000..2b58d0dbb7f --- /dev/null +++ b/gems/aws-sdk-costexplorer/lib/aws-sdk-costexplorer/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module CostExplorer + class Railtie < Rails::Railtie + initializer 'aws-sdk-costexplorer.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::CostExplorer + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-costoptimizationhub/lib/aws-sdk-costoptimizationhub/railtie.rb b/gems/aws-sdk-costoptimizationhub/lib/aws-sdk-costoptimizationhub/railtie.rb new file mode 100644 index 00000000000..ddd9d452d5c --- /dev/null +++ b/gems/aws-sdk-costoptimizationhub/lib/aws-sdk-costoptimizationhub/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module CostOptimizationHub + class Railtie < Rails::Railtie + initializer 'aws-sdk-costoptimizationhub.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::CostOptimizationHub + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-customerprofiles/lib/aws-sdk-customerprofiles/railtie.rb b/gems/aws-sdk-customerprofiles/lib/aws-sdk-customerprofiles/railtie.rb new file mode 100644 index 00000000000..5a583bbaf4f --- /dev/null +++ b/gems/aws-sdk-customerprofiles/lib/aws-sdk-customerprofiles/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module CustomerProfiles + class Railtie < Rails::Railtie + initializer 'aws-sdk-customerprofiles.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::CustomerProfiles + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-databasemigrationservice/lib/aws-sdk-databasemigrationservice/railtie.rb b/gems/aws-sdk-databasemigrationservice/lib/aws-sdk-databasemigrationservice/railtie.rb new file mode 100644 index 00000000000..fd04e1dffcb --- /dev/null +++ b/gems/aws-sdk-databasemigrationservice/lib/aws-sdk-databasemigrationservice/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module DatabaseMigrationService + class Railtie < Rails::Railtie + initializer 'aws-sdk-databasemigrationservice.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::DatabaseMigrationService + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-dataexchange/lib/aws-sdk-dataexchange/railtie.rb b/gems/aws-sdk-dataexchange/lib/aws-sdk-dataexchange/railtie.rb new file mode 100644 index 00000000000..04cc6cf43aa --- /dev/null +++ b/gems/aws-sdk-dataexchange/lib/aws-sdk-dataexchange/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module DataExchange + class Railtie < Rails::Railtie + initializer 'aws-sdk-dataexchange.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::DataExchange + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-datapipeline/lib/aws-sdk-datapipeline/railtie.rb b/gems/aws-sdk-datapipeline/lib/aws-sdk-datapipeline/railtie.rb new file mode 100644 index 00000000000..5208ff9ed2c --- /dev/null +++ b/gems/aws-sdk-datapipeline/lib/aws-sdk-datapipeline/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module DataPipeline + class Railtie < Rails::Railtie + initializer 'aws-sdk-datapipeline.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::DataPipeline + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-datasync/lib/aws-sdk-datasync/railtie.rb b/gems/aws-sdk-datasync/lib/aws-sdk-datasync/railtie.rb new file mode 100644 index 00000000000..89dbfefab85 --- /dev/null +++ b/gems/aws-sdk-datasync/lib/aws-sdk-datasync/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module DataSync + class Railtie < Rails::Railtie + initializer 'aws-sdk-datasync.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::DataSync + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-datazone/lib/aws-sdk-datazone/railtie.rb b/gems/aws-sdk-datazone/lib/aws-sdk-datazone/railtie.rb new file mode 100644 index 00000000000..db40b3bdf15 --- /dev/null +++ b/gems/aws-sdk-datazone/lib/aws-sdk-datazone/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module DataZone + class Railtie < Rails::Railtie + initializer 'aws-sdk-datazone.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::DataZone + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-dax/lib/aws-sdk-dax/railtie.rb b/gems/aws-sdk-dax/lib/aws-sdk-dax/railtie.rb new file mode 100644 index 00000000000..894caf6f44c --- /dev/null +++ b/gems/aws-sdk-dax/lib/aws-sdk-dax/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module DAX + class Railtie < Rails::Railtie + initializer 'aws-sdk-dax.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::DAX + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-deadline/lib/aws-sdk-deadline/railtie.rb b/gems/aws-sdk-deadline/lib/aws-sdk-deadline/railtie.rb new file mode 100644 index 00000000000..b030dbc146c --- /dev/null +++ b/gems/aws-sdk-deadline/lib/aws-sdk-deadline/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module Deadline + class Railtie < Rails::Railtie + initializer 'aws-sdk-deadline.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::Deadline + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-detective/lib/aws-sdk-detective/railtie.rb b/gems/aws-sdk-detective/lib/aws-sdk-detective/railtie.rb new file mode 100644 index 00000000000..91dc244e4c8 --- /dev/null +++ b/gems/aws-sdk-detective/lib/aws-sdk-detective/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module Detective + class Railtie < Rails::Railtie + initializer 'aws-sdk-detective.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::Detective + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-devicefarm/lib/aws-sdk-devicefarm/railtie.rb b/gems/aws-sdk-devicefarm/lib/aws-sdk-devicefarm/railtie.rb new file mode 100644 index 00000000000..e05c5edd642 --- /dev/null +++ b/gems/aws-sdk-devicefarm/lib/aws-sdk-devicefarm/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module DeviceFarm + class Railtie < Rails::Railtie + initializer 'aws-sdk-devicefarm.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::DeviceFarm + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-devopsguru/lib/aws-sdk-devopsguru/railtie.rb b/gems/aws-sdk-devopsguru/lib/aws-sdk-devopsguru/railtie.rb new file mode 100644 index 00000000000..3499bc15ec1 --- /dev/null +++ b/gems/aws-sdk-devopsguru/lib/aws-sdk-devopsguru/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module DevOpsGuru + class Railtie < Rails::Railtie + initializer 'aws-sdk-devopsguru.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::DevOpsGuru + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-directconnect/lib/aws-sdk-directconnect/railtie.rb b/gems/aws-sdk-directconnect/lib/aws-sdk-directconnect/railtie.rb new file mode 100644 index 00000000000..9e1db12f8cd --- /dev/null +++ b/gems/aws-sdk-directconnect/lib/aws-sdk-directconnect/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module DirectConnect + class Railtie < Rails::Railtie + initializer 'aws-sdk-directconnect.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::DirectConnect + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-directoryservice/lib/aws-sdk-directoryservice/railtie.rb b/gems/aws-sdk-directoryservice/lib/aws-sdk-directoryservice/railtie.rb new file mode 100644 index 00000000000..b1d3425486f --- /dev/null +++ b/gems/aws-sdk-directoryservice/lib/aws-sdk-directoryservice/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module DirectoryService + class Railtie < Rails::Railtie + initializer 'aws-sdk-directoryservice.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::DirectoryService + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-dlm/lib/aws-sdk-dlm/railtie.rb b/gems/aws-sdk-dlm/lib/aws-sdk-dlm/railtie.rb new file mode 100644 index 00000000000..8cd60d0aa12 --- /dev/null +++ b/gems/aws-sdk-dlm/lib/aws-sdk-dlm/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module DLM + class Railtie < Rails::Railtie + initializer 'aws-sdk-dlm.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::DLM + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-docdb/lib/aws-sdk-docdb/railtie.rb b/gems/aws-sdk-docdb/lib/aws-sdk-docdb/railtie.rb new file mode 100644 index 00000000000..3c49da4286a --- /dev/null +++ b/gems/aws-sdk-docdb/lib/aws-sdk-docdb/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module DocDB + class Railtie < Rails::Railtie + initializer 'aws-sdk-docdb.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::DocDB + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-docdbelastic/lib/aws-sdk-docdbelastic/railtie.rb b/gems/aws-sdk-docdbelastic/lib/aws-sdk-docdbelastic/railtie.rb new file mode 100644 index 00000000000..bb02ab6dfea --- /dev/null +++ b/gems/aws-sdk-docdbelastic/lib/aws-sdk-docdbelastic/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module DocDBElastic + class Railtie < Rails::Railtie + initializer 'aws-sdk-docdbelastic.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::DocDBElastic + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-drs/lib/aws-sdk-drs/railtie.rb b/gems/aws-sdk-drs/lib/aws-sdk-drs/railtie.rb new file mode 100644 index 00000000000..fa7458ac33d --- /dev/null +++ b/gems/aws-sdk-drs/lib/aws-sdk-drs/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module Drs + class Railtie < Rails::Railtie + initializer 'aws-sdk-drs.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::Drs + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-dynamodb/lib/aws-sdk-dynamodb/railtie.rb b/gems/aws-sdk-dynamodb/lib/aws-sdk-dynamodb/railtie.rb new file mode 100644 index 00000000000..3cb03022868 --- /dev/null +++ b/gems/aws-sdk-dynamodb/lib/aws-sdk-dynamodb/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module DynamoDB + class Railtie < Rails::Railtie + initializer 'aws-sdk-dynamodb.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::DynamoDB + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-dynamodbstreams/lib/aws-sdk-dynamodbstreams/customizations.rb b/gems/aws-sdk-dynamodbstreams/lib/aws-sdk-dynamodbstreams/customizations.rb index 6a2dc62b2ee..1b73b8979a0 100644 --- a/gems/aws-sdk-dynamodbstreams/lib/aws-sdk-dynamodbstreams/customizations.rb +++ b/gems/aws-sdk-dynamodbstreams/lib/aws-sdk-dynamodbstreams/customizations.rb @@ -1,5 +1,9 @@ # frozen_string_literal: true # utility classes -require 'aws-sdk-dynamodbstreams/attribute_translator' -require 'aws-sdk-dynamodbstreams/attribute_value' +module Aws + module DynamoDBStreams + autoload :AttributeTranslator, 'aws-sdk-dynamodbstreams/attribute_translator' + autoload :AttributeValue, 'aws-sdk-dynamodbstreams/attribute_value' + end +end diff --git a/gems/aws-sdk-dynamodbstreams/lib/aws-sdk-dynamodbstreams/railtie.rb b/gems/aws-sdk-dynamodbstreams/lib/aws-sdk-dynamodbstreams/railtie.rb new file mode 100644 index 00000000000..cff2e9916f6 --- /dev/null +++ b/gems/aws-sdk-dynamodbstreams/lib/aws-sdk-dynamodbstreams/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module DynamoDBStreams + class Railtie < Rails::Railtie + initializer 'aws-sdk-dynamodbstreams.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::DynamoDBStreams + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-ebs/lib/aws-sdk-ebs/railtie.rb b/gems/aws-sdk-ebs/lib/aws-sdk-ebs/railtie.rb new file mode 100644 index 00000000000..79034a04f6c --- /dev/null +++ b/gems/aws-sdk-ebs/lib/aws-sdk-ebs/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module EBS + class Railtie < Rails::Railtie + initializer 'aws-sdk-ebs.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::EBS + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-ec2/lib/aws-sdk-ec2/customizations.rb b/gems/aws-sdk-ec2/lib/aws-sdk-ec2/customizations.rb index dd92f4ecf76..8e9b8f90fa4 100644 --- a/gems/aws-sdk-ec2/lib/aws-sdk-ec2/customizations.rb +++ b/gems/aws-sdk-ec2/lib/aws-sdk-ec2/customizations.rb @@ -1,23 +1 @@ # frozen_string_literal: true - -# customizations to generated classes -require 'aws-sdk-ec2/customizations/resource' -require 'aws-sdk-ec2/customizations/instance' - -Aws::EC2::Instance::Collection.extend Aws::Deprecations -{ - create_tags: :batch_create_tags, - monitor: :batch_create_tags, - reboot: :batch_reboot, - start: :batch_start, - stop: :batch_stop, - terminate: :batch_terminate!, - unmonitor: :batch_unmonitor, -}.each do |old, new| - Aws::EC2::Instance::Collection.send(:alias_method, old, new) - Aws::EC2::Instance::Collection.send(:deprecated, old, use: new) -end - -Aws::EC2::Tag::Collection.send(:alias_method, :delete, :batch_delete!) -Aws::EC2::Tag::Collection.extend Aws::Deprecations -Aws::EC2::Tag::Collection.send(:deprecated, :delete, use: :batch_delete!) diff --git a/gems/aws-sdk-ec2/lib/aws-sdk-ec2/customizations/instance.rb b/gems/aws-sdk-ec2/lib/aws-sdk-ec2/customizations/instance.rb index 5dc3ba19dda..f80dc11be5c 100644 --- a/gems/aws-sdk-ec2/lib/aws-sdk-ec2/customizations/instance.rb +++ b/gems/aws-sdk-ec2/lib/aws-sdk-ec2/customizations/instance.rb @@ -15,6 +15,23 @@ def decrypt_windows_password(key_pair_path) private_key.private_decrypt(decoded) end + class Collection < Aws::Resources::Collection + extend Aws::Deprecations + + { + create_tags: :batch_create_tags, + monitor: :batch_create_tags, + reboot: :batch_reboot, + start: :batch_start, + stop: :batch_stop, + terminate: :batch_terminate!, + unmonitor: :batch_unmonitor + }.each do |old_method, new_method| + alias_method old_method, new_method + deprecated old_method, use: new_method + end + end + private def encrypted_password diff --git a/gems/aws-sdk-ec2/lib/aws-sdk-ec2/customizations/tag.rb b/gems/aws-sdk-ec2/lib/aws-sdk-ec2/customizations/tag.rb new file mode 100644 index 00000000000..54b9b55c1a0 --- /dev/null +++ b/gems/aws-sdk-ec2/lib/aws-sdk-ec2/customizations/tag.rb @@ -0,0 +1,13 @@ +# frozen_string_literal: true + +module Aws + module EC2 + class Instance + class Collection < Aws::Resources::Collection + alias_method :delete, :batch_delete! + extend Aws::Deprecations + deprecated :delete, use: :batch_delete! + end + end + end +end diff --git a/gems/aws-sdk-ec2/lib/aws-sdk-ec2/railtie.rb b/gems/aws-sdk-ec2/lib/aws-sdk-ec2/railtie.rb new file mode 100644 index 00000000000..0264bcc99aa --- /dev/null +++ b/gems/aws-sdk-ec2/lib/aws-sdk-ec2/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module EC2 + class Railtie < Rails::Railtie + initializer 'aws-sdk-ec2.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::EC2 + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-ec2instanceconnect/lib/aws-sdk-ec2instanceconnect/railtie.rb b/gems/aws-sdk-ec2instanceconnect/lib/aws-sdk-ec2instanceconnect/railtie.rb new file mode 100644 index 00000000000..742b1ef75e3 --- /dev/null +++ b/gems/aws-sdk-ec2instanceconnect/lib/aws-sdk-ec2instanceconnect/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module EC2InstanceConnect + class Railtie < Rails::Railtie + initializer 'aws-sdk-ec2instanceconnect.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::EC2InstanceConnect + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-ecr/lib/aws-sdk-ecr/railtie.rb b/gems/aws-sdk-ecr/lib/aws-sdk-ecr/railtie.rb new file mode 100644 index 00000000000..444997c00d8 --- /dev/null +++ b/gems/aws-sdk-ecr/lib/aws-sdk-ecr/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module ECR + class Railtie < Rails::Railtie + initializer 'aws-sdk-ecr.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::ECR + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-ecrpublic/lib/aws-sdk-ecrpublic/railtie.rb b/gems/aws-sdk-ecrpublic/lib/aws-sdk-ecrpublic/railtie.rb new file mode 100644 index 00000000000..bb586011b65 --- /dev/null +++ b/gems/aws-sdk-ecrpublic/lib/aws-sdk-ecrpublic/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module ECRPublic + class Railtie < Rails::Railtie + initializer 'aws-sdk-ecrpublic.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::ECRPublic + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-ecs/lib/aws-sdk-ecs/railtie.rb b/gems/aws-sdk-ecs/lib/aws-sdk-ecs/railtie.rb new file mode 100644 index 00000000000..7934a3cad3d --- /dev/null +++ b/gems/aws-sdk-ecs/lib/aws-sdk-ecs/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module ECS + class Railtie < Rails::Railtie + initializer 'aws-sdk-ecs.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::ECS + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-efs/lib/aws-sdk-efs/railtie.rb b/gems/aws-sdk-efs/lib/aws-sdk-efs/railtie.rb new file mode 100644 index 00000000000..434b36a71dd --- /dev/null +++ b/gems/aws-sdk-efs/lib/aws-sdk-efs/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module EFS + class Railtie < Rails::Railtie + initializer 'aws-sdk-efs.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::EFS + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-eks/lib/aws-sdk-eks/railtie.rb b/gems/aws-sdk-eks/lib/aws-sdk-eks/railtie.rb new file mode 100644 index 00000000000..13dc5846164 --- /dev/null +++ b/gems/aws-sdk-eks/lib/aws-sdk-eks/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module EKS + class Railtie < Rails::Railtie + initializer 'aws-sdk-eks.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::EKS + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-eksauth/lib/aws-sdk-eksauth/railtie.rb b/gems/aws-sdk-eksauth/lib/aws-sdk-eksauth/railtie.rb new file mode 100644 index 00000000000..967707b6433 --- /dev/null +++ b/gems/aws-sdk-eksauth/lib/aws-sdk-eksauth/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module EKSAuth + class Railtie < Rails::Railtie + initializer 'aws-sdk-eksauth.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::EKSAuth + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-elasticache/lib/aws-sdk-elasticache/railtie.rb b/gems/aws-sdk-elasticache/lib/aws-sdk-elasticache/railtie.rb new file mode 100644 index 00000000000..68dfdeb6403 --- /dev/null +++ b/gems/aws-sdk-elasticache/lib/aws-sdk-elasticache/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module ElastiCache + class Railtie < Rails::Railtie + initializer 'aws-sdk-elasticache.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::ElastiCache + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-elasticbeanstalk/lib/aws-sdk-elasticbeanstalk/railtie.rb b/gems/aws-sdk-elasticbeanstalk/lib/aws-sdk-elasticbeanstalk/railtie.rb new file mode 100644 index 00000000000..97819289509 --- /dev/null +++ b/gems/aws-sdk-elasticbeanstalk/lib/aws-sdk-elasticbeanstalk/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module ElasticBeanstalk + class Railtie < Rails::Railtie + initializer 'aws-sdk-elasticbeanstalk.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::ElasticBeanstalk + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-elasticinference/lib/aws-sdk-elasticinference/railtie.rb b/gems/aws-sdk-elasticinference/lib/aws-sdk-elasticinference/railtie.rb new file mode 100644 index 00000000000..a7465f92760 --- /dev/null +++ b/gems/aws-sdk-elasticinference/lib/aws-sdk-elasticinference/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module ElasticInference + class Railtie < Rails::Railtie + initializer 'aws-sdk-elasticinference.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::ElasticInference + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-elasticloadbalancing/lib/aws-sdk-elasticloadbalancing/railtie.rb b/gems/aws-sdk-elasticloadbalancing/lib/aws-sdk-elasticloadbalancing/railtie.rb new file mode 100644 index 00000000000..a9d623c1941 --- /dev/null +++ b/gems/aws-sdk-elasticloadbalancing/lib/aws-sdk-elasticloadbalancing/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module ElasticLoadBalancing + class Railtie < Rails::Railtie + initializer 'aws-sdk-elasticloadbalancing.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::ElasticLoadBalancing + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-elasticloadbalancingv2/lib/aws-sdk-elasticloadbalancingv2/railtie.rb b/gems/aws-sdk-elasticloadbalancingv2/lib/aws-sdk-elasticloadbalancingv2/railtie.rb new file mode 100644 index 00000000000..d107a01a80e --- /dev/null +++ b/gems/aws-sdk-elasticloadbalancingv2/lib/aws-sdk-elasticloadbalancingv2/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module ElasticLoadBalancingV2 + class Railtie < Rails::Railtie + initializer 'aws-sdk-elasticloadbalancingv2.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::ElasticLoadBalancingV2 + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-elasticsearchservice/lib/aws-sdk-elasticsearchservice/railtie.rb b/gems/aws-sdk-elasticsearchservice/lib/aws-sdk-elasticsearchservice/railtie.rb new file mode 100644 index 00000000000..e8e0c3ed156 --- /dev/null +++ b/gems/aws-sdk-elasticsearchservice/lib/aws-sdk-elasticsearchservice/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module ElasticsearchService + class Railtie < Rails::Railtie + initializer 'aws-sdk-elasticsearchservice.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::ElasticsearchService + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-elastictranscoder/lib/aws-sdk-elastictranscoder/railtie.rb b/gems/aws-sdk-elastictranscoder/lib/aws-sdk-elastictranscoder/railtie.rb new file mode 100644 index 00000000000..d055de1357a --- /dev/null +++ b/gems/aws-sdk-elastictranscoder/lib/aws-sdk-elastictranscoder/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module ElasticTranscoder + class Railtie < Rails::Railtie + initializer 'aws-sdk-elastictranscoder.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::ElasticTranscoder + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-emr/lib/aws-sdk-emr/railtie.rb b/gems/aws-sdk-emr/lib/aws-sdk-emr/railtie.rb new file mode 100644 index 00000000000..b1182709778 --- /dev/null +++ b/gems/aws-sdk-emr/lib/aws-sdk-emr/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module EMR + class Railtie < Rails::Railtie + initializer 'aws-sdk-emr.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::EMR + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-emrcontainers/lib/aws-sdk-emrcontainers/railtie.rb b/gems/aws-sdk-emrcontainers/lib/aws-sdk-emrcontainers/railtie.rb new file mode 100644 index 00000000000..fb73d9c4481 --- /dev/null +++ b/gems/aws-sdk-emrcontainers/lib/aws-sdk-emrcontainers/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module EMRContainers + class Railtie < Rails::Railtie + initializer 'aws-sdk-emrcontainers.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::EMRContainers + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-emrserverless/lib/aws-sdk-emrserverless/railtie.rb b/gems/aws-sdk-emrserverless/lib/aws-sdk-emrserverless/railtie.rb new file mode 100644 index 00000000000..057d315d280 --- /dev/null +++ b/gems/aws-sdk-emrserverless/lib/aws-sdk-emrserverless/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module EMRServerless + class Railtie < Rails::Railtie + initializer 'aws-sdk-emrserverless.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::EMRServerless + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-entityresolution/lib/aws-sdk-entityresolution/railtie.rb b/gems/aws-sdk-entityresolution/lib/aws-sdk-entityresolution/railtie.rb new file mode 100644 index 00000000000..f048c949e16 --- /dev/null +++ b/gems/aws-sdk-entityresolution/lib/aws-sdk-entityresolution/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module EntityResolution + class Railtie < Rails::Railtie + initializer 'aws-sdk-entityresolution.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::EntityResolution + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-eventbridge/lib/aws-sdk-eventbridge/railtie.rb b/gems/aws-sdk-eventbridge/lib/aws-sdk-eventbridge/railtie.rb new file mode 100644 index 00000000000..637f938986e --- /dev/null +++ b/gems/aws-sdk-eventbridge/lib/aws-sdk-eventbridge/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module EventBridge + class Railtie < Rails::Railtie + initializer 'aws-sdk-eventbridge.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::EventBridge + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-finspace/lib/aws-sdk-finspace/railtie.rb b/gems/aws-sdk-finspace/lib/aws-sdk-finspace/railtie.rb new file mode 100644 index 00000000000..4d04b61c2cc --- /dev/null +++ b/gems/aws-sdk-finspace/lib/aws-sdk-finspace/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module Finspace + class Railtie < Rails::Railtie + initializer 'aws-sdk-finspace.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::Finspace + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-finspacedata/lib/aws-sdk-finspacedata/railtie.rb b/gems/aws-sdk-finspacedata/lib/aws-sdk-finspacedata/railtie.rb new file mode 100644 index 00000000000..87b3fd69512 --- /dev/null +++ b/gems/aws-sdk-finspacedata/lib/aws-sdk-finspacedata/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module FinSpaceData + class Railtie < Rails::Railtie + initializer 'aws-sdk-finspacedata.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::FinSpaceData + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-firehose/lib/aws-sdk-firehose/railtie.rb b/gems/aws-sdk-firehose/lib/aws-sdk-firehose/railtie.rb new file mode 100644 index 00000000000..bc78d8ccd0f --- /dev/null +++ b/gems/aws-sdk-firehose/lib/aws-sdk-firehose/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module Firehose + class Railtie < Rails::Railtie + initializer 'aws-sdk-firehose.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::Firehose + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-fis/lib/aws-sdk-fis/railtie.rb b/gems/aws-sdk-fis/lib/aws-sdk-fis/railtie.rb new file mode 100644 index 00000000000..a7ce6503d17 --- /dev/null +++ b/gems/aws-sdk-fis/lib/aws-sdk-fis/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module FIS + class Railtie < Rails::Railtie + initializer 'aws-sdk-fis.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::FIS + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-fms/lib/aws-sdk-fms/railtie.rb b/gems/aws-sdk-fms/lib/aws-sdk-fms/railtie.rb new file mode 100644 index 00000000000..24eb189676b --- /dev/null +++ b/gems/aws-sdk-fms/lib/aws-sdk-fms/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module FMS + class Railtie < Rails::Railtie + initializer 'aws-sdk-fms.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::FMS + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-forecastqueryservice/lib/aws-sdk-forecastqueryservice/railtie.rb b/gems/aws-sdk-forecastqueryservice/lib/aws-sdk-forecastqueryservice/railtie.rb new file mode 100644 index 00000000000..4b3bb8ee772 --- /dev/null +++ b/gems/aws-sdk-forecastqueryservice/lib/aws-sdk-forecastqueryservice/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module ForecastQueryService + class Railtie < Rails::Railtie + initializer 'aws-sdk-forecastqueryservice.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::ForecastQueryService + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-forecastservice/lib/aws-sdk-forecastservice/railtie.rb b/gems/aws-sdk-forecastservice/lib/aws-sdk-forecastservice/railtie.rb new file mode 100644 index 00000000000..f57a947c57b --- /dev/null +++ b/gems/aws-sdk-forecastservice/lib/aws-sdk-forecastservice/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module ForecastService + class Railtie < Rails::Railtie + initializer 'aws-sdk-forecastservice.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::ForecastService + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-frauddetector/lib/aws-sdk-frauddetector/railtie.rb b/gems/aws-sdk-frauddetector/lib/aws-sdk-frauddetector/railtie.rb new file mode 100644 index 00000000000..141d3581549 --- /dev/null +++ b/gems/aws-sdk-frauddetector/lib/aws-sdk-frauddetector/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module FraudDetector + class Railtie < Rails::Railtie + initializer 'aws-sdk-frauddetector.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::FraudDetector + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-freetier/lib/aws-sdk-freetier/railtie.rb b/gems/aws-sdk-freetier/lib/aws-sdk-freetier/railtie.rb new file mode 100644 index 00000000000..d40b3eedea7 --- /dev/null +++ b/gems/aws-sdk-freetier/lib/aws-sdk-freetier/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module FreeTier + class Railtie < Rails::Railtie + initializer 'aws-sdk-freetier.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::FreeTier + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-fsx/lib/aws-sdk-fsx/railtie.rb b/gems/aws-sdk-fsx/lib/aws-sdk-fsx/railtie.rb new file mode 100644 index 00000000000..a7d6d572544 --- /dev/null +++ b/gems/aws-sdk-fsx/lib/aws-sdk-fsx/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module FSx + class Railtie < Rails::Railtie + initializer 'aws-sdk-fsx.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::FSx + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-gamelift/lib/aws-sdk-gamelift/railtie.rb b/gems/aws-sdk-gamelift/lib/aws-sdk-gamelift/railtie.rb new file mode 100644 index 00000000000..f4ed6b5cfd9 --- /dev/null +++ b/gems/aws-sdk-gamelift/lib/aws-sdk-gamelift/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module GameLift + class Railtie < Rails::Railtie + initializer 'aws-sdk-gamelift.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::GameLift + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-glacier/lib/aws-sdk-glacier/railtie.rb b/gems/aws-sdk-glacier/lib/aws-sdk-glacier/railtie.rb new file mode 100644 index 00000000000..f8af929cf54 --- /dev/null +++ b/gems/aws-sdk-glacier/lib/aws-sdk-glacier/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module Glacier + class Railtie < Rails::Railtie + initializer 'aws-sdk-glacier.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::Glacier + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-globalaccelerator/lib/aws-sdk-globalaccelerator/railtie.rb b/gems/aws-sdk-globalaccelerator/lib/aws-sdk-globalaccelerator/railtie.rb new file mode 100644 index 00000000000..e0af9744d8e --- /dev/null +++ b/gems/aws-sdk-globalaccelerator/lib/aws-sdk-globalaccelerator/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module GlobalAccelerator + class Railtie < Rails::Railtie + initializer 'aws-sdk-globalaccelerator.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::GlobalAccelerator + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-glue/lib/aws-sdk-glue/railtie.rb b/gems/aws-sdk-glue/lib/aws-sdk-glue/railtie.rb new file mode 100644 index 00000000000..778b051ca67 --- /dev/null +++ b/gems/aws-sdk-glue/lib/aws-sdk-glue/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module Glue + class Railtie < Rails::Railtie + initializer 'aws-sdk-glue.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::Glue + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-gluedatabrew/lib/aws-sdk-gluedatabrew/railtie.rb b/gems/aws-sdk-gluedatabrew/lib/aws-sdk-gluedatabrew/railtie.rb new file mode 100644 index 00000000000..65ae6c30431 --- /dev/null +++ b/gems/aws-sdk-gluedatabrew/lib/aws-sdk-gluedatabrew/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module GlueDataBrew + class Railtie < Rails::Railtie + initializer 'aws-sdk-gluedatabrew.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::GlueDataBrew + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-greengrass/lib/aws-sdk-greengrass/railtie.rb b/gems/aws-sdk-greengrass/lib/aws-sdk-greengrass/railtie.rb new file mode 100644 index 00000000000..e01aad7380e --- /dev/null +++ b/gems/aws-sdk-greengrass/lib/aws-sdk-greengrass/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module Greengrass + class Railtie < Rails::Railtie + initializer 'aws-sdk-greengrass.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::Greengrass + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-greengrassv2/lib/aws-sdk-greengrassv2/railtie.rb b/gems/aws-sdk-greengrassv2/lib/aws-sdk-greengrassv2/railtie.rb new file mode 100644 index 00000000000..9512d41a72d --- /dev/null +++ b/gems/aws-sdk-greengrassv2/lib/aws-sdk-greengrassv2/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module GreengrassV2 + class Railtie < Rails::Railtie + initializer 'aws-sdk-greengrassv2.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::GreengrassV2 + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-groundstation/lib/aws-sdk-groundstation/railtie.rb b/gems/aws-sdk-groundstation/lib/aws-sdk-groundstation/railtie.rb new file mode 100644 index 00000000000..0b0325560fc --- /dev/null +++ b/gems/aws-sdk-groundstation/lib/aws-sdk-groundstation/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module GroundStation + class Railtie < Rails::Railtie + initializer 'aws-sdk-groundstation.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::GroundStation + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-guardduty/lib/aws-sdk-guardduty/railtie.rb b/gems/aws-sdk-guardduty/lib/aws-sdk-guardduty/railtie.rb new file mode 100644 index 00000000000..b6277fc8167 --- /dev/null +++ b/gems/aws-sdk-guardduty/lib/aws-sdk-guardduty/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module GuardDuty + class Railtie < Rails::Railtie + initializer 'aws-sdk-guardduty.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::GuardDuty + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-health/lib/aws-sdk-health/railtie.rb b/gems/aws-sdk-health/lib/aws-sdk-health/railtie.rb new file mode 100644 index 00000000000..6787d155f1c --- /dev/null +++ b/gems/aws-sdk-health/lib/aws-sdk-health/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module Health + class Railtie < Rails::Railtie + initializer 'aws-sdk-health.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::Health + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-healthlake/lib/aws-sdk-healthlake/railtie.rb b/gems/aws-sdk-healthlake/lib/aws-sdk-healthlake/railtie.rb new file mode 100644 index 00000000000..ea5feb1d879 --- /dev/null +++ b/gems/aws-sdk-healthlake/lib/aws-sdk-healthlake/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module HealthLake + class Railtie < Rails::Railtie + initializer 'aws-sdk-healthlake.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::HealthLake + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-iam/lib/aws-sdk-iam/customizations.rb b/gems/aws-sdk-iam/lib/aws-sdk-iam/customizations.rb index 18df3e09568..8e9b8f90fa4 100644 --- a/gems/aws-sdk-iam/lib/aws-sdk-iam/customizations.rb +++ b/gems/aws-sdk-iam/lib/aws-sdk-iam/customizations.rb @@ -1,4 +1 @@ # frozen_string_literal: true - -# customizations to generated classes -require 'aws-sdk-iam/customizations/resource' diff --git a/gems/aws-sdk-iam/lib/aws-sdk-iam/railtie.rb b/gems/aws-sdk-iam/lib/aws-sdk-iam/railtie.rb new file mode 100644 index 00000000000..f75b8b77920 --- /dev/null +++ b/gems/aws-sdk-iam/lib/aws-sdk-iam/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module IAM + class Railtie < Rails::Railtie + initializer 'aws-sdk-iam.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::IAM + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-identitystore/lib/aws-sdk-identitystore/railtie.rb b/gems/aws-sdk-identitystore/lib/aws-sdk-identitystore/railtie.rb new file mode 100644 index 00000000000..9fab73e61ca --- /dev/null +++ b/gems/aws-sdk-identitystore/lib/aws-sdk-identitystore/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module IdentityStore + class Railtie < Rails::Railtie + initializer 'aws-sdk-identitystore.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::IdentityStore + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-imagebuilder/lib/aws-sdk-imagebuilder/railtie.rb b/gems/aws-sdk-imagebuilder/lib/aws-sdk-imagebuilder/railtie.rb new file mode 100644 index 00000000000..90c1316fb46 --- /dev/null +++ b/gems/aws-sdk-imagebuilder/lib/aws-sdk-imagebuilder/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module Imagebuilder + class Railtie < Rails::Railtie + initializer 'aws-sdk-imagebuilder.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::Imagebuilder + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-importexport/lib/aws-sdk-importexport/railtie.rb b/gems/aws-sdk-importexport/lib/aws-sdk-importexport/railtie.rb new file mode 100644 index 00000000000..0d671346484 --- /dev/null +++ b/gems/aws-sdk-importexport/lib/aws-sdk-importexport/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module ImportExport + class Railtie < Rails::Railtie + initializer 'aws-sdk-importexport.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::ImportExport + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-inspector/lib/aws-sdk-inspector/railtie.rb b/gems/aws-sdk-inspector/lib/aws-sdk-inspector/railtie.rb new file mode 100644 index 00000000000..baf6660e18e --- /dev/null +++ b/gems/aws-sdk-inspector/lib/aws-sdk-inspector/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module Inspector + class Railtie < Rails::Railtie + initializer 'aws-sdk-inspector.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::Inspector + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-inspector2/lib/aws-sdk-inspector2/railtie.rb b/gems/aws-sdk-inspector2/lib/aws-sdk-inspector2/railtie.rb new file mode 100644 index 00000000000..187c980ed8d --- /dev/null +++ b/gems/aws-sdk-inspector2/lib/aws-sdk-inspector2/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module Inspector2 + class Railtie < Rails::Railtie + initializer 'aws-sdk-inspector2.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::Inspector2 + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-inspectorscan/lib/aws-sdk-inspectorscan/railtie.rb b/gems/aws-sdk-inspectorscan/lib/aws-sdk-inspectorscan/railtie.rb new file mode 100644 index 00000000000..7539a991256 --- /dev/null +++ b/gems/aws-sdk-inspectorscan/lib/aws-sdk-inspectorscan/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module InspectorScan + class Railtie < Rails::Railtie + initializer 'aws-sdk-inspectorscan.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::InspectorScan + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-internetmonitor/lib/aws-sdk-internetmonitor/railtie.rb b/gems/aws-sdk-internetmonitor/lib/aws-sdk-internetmonitor/railtie.rb new file mode 100644 index 00000000000..6bdcb7bc3b8 --- /dev/null +++ b/gems/aws-sdk-internetmonitor/lib/aws-sdk-internetmonitor/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module InternetMonitor + class Railtie < Rails::Railtie + initializer 'aws-sdk-internetmonitor.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::InternetMonitor + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-iot/lib/aws-sdk-iot/railtie.rb b/gems/aws-sdk-iot/lib/aws-sdk-iot/railtie.rb new file mode 100644 index 00000000000..7f2754ad564 --- /dev/null +++ b/gems/aws-sdk-iot/lib/aws-sdk-iot/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module IoT + class Railtie < Rails::Railtie + initializer 'aws-sdk-iot.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::IoT + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-iot1clickdevicesservice/lib/aws-sdk-iot1clickdevicesservice/railtie.rb b/gems/aws-sdk-iot1clickdevicesservice/lib/aws-sdk-iot1clickdevicesservice/railtie.rb new file mode 100644 index 00000000000..f382d1c22ad --- /dev/null +++ b/gems/aws-sdk-iot1clickdevicesservice/lib/aws-sdk-iot1clickdevicesservice/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module IoT1ClickDevicesService + class Railtie < Rails::Railtie + initializer 'aws-sdk-iot1clickdevicesservice.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::IoT1ClickDevicesService + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-iot1clickprojects/lib/aws-sdk-iot1clickprojects/railtie.rb b/gems/aws-sdk-iot1clickprojects/lib/aws-sdk-iot1clickprojects/railtie.rb new file mode 100644 index 00000000000..1cb6314da68 --- /dev/null +++ b/gems/aws-sdk-iot1clickprojects/lib/aws-sdk-iot1clickprojects/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module IoT1ClickProjects + class Railtie < Rails::Railtie + initializer 'aws-sdk-iot1clickprojects.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::IoT1ClickProjects + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-iotanalytics/lib/aws-sdk-iotanalytics/railtie.rb b/gems/aws-sdk-iotanalytics/lib/aws-sdk-iotanalytics/railtie.rb new file mode 100644 index 00000000000..0eb2fcabd33 --- /dev/null +++ b/gems/aws-sdk-iotanalytics/lib/aws-sdk-iotanalytics/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module IoTAnalytics + class Railtie < Rails::Railtie + initializer 'aws-sdk-iotanalytics.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::IoTAnalytics + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-iotdataplane/lib/aws-sdk-iotdataplane/railtie.rb b/gems/aws-sdk-iotdataplane/lib/aws-sdk-iotdataplane/railtie.rb new file mode 100644 index 00000000000..033165aecbd --- /dev/null +++ b/gems/aws-sdk-iotdataplane/lib/aws-sdk-iotdataplane/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module IoTDataPlane + class Railtie < Rails::Railtie + initializer 'aws-sdk-iotdataplane.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::IoTDataPlane + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-iotdeviceadvisor/lib/aws-sdk-iotdeviceadvisor/railtie.rb b/gems/aws-sdk-iotdeviceadvisor/lib/aws-sdk-iotdeviceadvisor/railtie.rb new file mode 100644 index 00000000000..c7386f8d2e4 --- /dev/null +++ b/gems/aws-sdk-iotdeviceadvisor/lib/aws-sdk-iotdeviceadvisor/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module IoTDeviceAdvisor + class Railtie < Rails::Railtie + initializer 'aws-sdk-iotdeviceadvisor.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::IoTDeviceAdvisor + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-iotevents/lib/aws-sdk-iotevents/railtie.rb b/gems/aws-sdk-iotevents/lib/aws-sdk-iotevents/railtie.rb new file mode 100644 index 00000000000..a7caa60fc54 --- /dev/null +++ b/gems/aws-sdk-iotevents/lib/aws-sdk-iotevents/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module IoTEvents + class Railtie < Rails::Railtie + initializer 'aws-sdk-iotevents.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::IoTEvents + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-ioteventsdata/lib/aws-sdk-ioteventsdata/railtie.rb b/gems/aws-sdk-ioteventsdata/lib/aws-sdk-ioteventsdata/railtie.rb new file mode 100644 index 00000000000..282339ab336 --- /dev/null +++ b/gems/aws-sdk-ioteventsdata/lib/aws-sdk-ioteventsdata/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module IoTEventsData + class Railtie < Rails::Railtie + initializer 'aws-sdk-ioteventsdata.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::IoTEventsData + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-iotfleethub/lib/aws-sdk-iotfleethub/railtie.rb b/gems/aws-sdk-iotfleethub/lib/aws-sdk-iotfleethub/railtie.rb new file mode 100644 index 00000000000..7c8609d3d5c --- /dev/null +++ b/gems/aws-sdk-iotfleethub/lib/aws-sdk-iotfleethub/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module IoTFleetHub + class Railtie < Rails::Railtie + initializer 'aws-sdk-iotfleethub.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::IoTFleetHub + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-iotfleetwise/lib/aws-sdk-iotfleetwise/railtie.rb b/gems/aws-sdk-iotfleetwise/lib/aws-sdk-iotfleetwise/railtie.rb new file mode 100644 index 00000000000..e316ba88121 --- /dev/null +++ b/gems/aws-sdk-iotfleetwise/lib/aws-sdk-iotfleetwise/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module IoTFleetWise + class Railtie < Rails::Railtie + initializer 'aws-sdk-iotfleetwise.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::IoTFleetWise + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-iotjobsdataplane/lib/aws-sdk-iotjobsdataplane/railtie.rb b/gems/aws-sdk-iotjobsdataplane/lib/aws-sdk-iotjobsdataplane/railtie.rb new file mode 100644 index 00000000000..7320c700d11 --- /dev/null +++ b/gems/aws-sdk-iotjobsdataplane/lib/aws-sdk-iotjobsdataplane/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module IoTJobsDataPlane + class Railtie < Rails::Railtie + initializer 'aws-sdk-iotjobsdataplane.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::IoTJobsDataPlane + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-iotsecuretunneling/lib/aws-sdk-iotsecuretunneling/railtie.rb b/gems/aws-sdk-iotsecuretunneling/lib/aws-sdk-iotsecuretunneling/railtie.rb new file mode 100644 index 00000000000..ef621bb72b6 --- /dev/null +++ b/gems/aws-sdk-iotsecuretunneling/lib/aws-sdk-iotsecuretunneling/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module IoTSecureTunneling + class Railtie < Rails::Railtie + initializer 'aws-sdk-iotsecuretunneling.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::IoTSecureTunneling + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-iotsitewise/lib/aws-sdk-iotsitewise/railtie.rb b/gems/aws-sdk-iotsitewise/lib/aws-sdk-iotsitewise/railtie.rb new file mode 100644 index 00000000000..157a5a02f9c --- /dev/null +++ b/gems/aws-sdk-iotsitewise/lib/aws-sdk-iotsitewise/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module IoTSiteWise + class Railtie < Rails::Railtie + initializer 'aws-sdk-iotsitewise.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::IoTSiteWise + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-iotthingsgraph/lib/aws-sdk-iotthingsgraph/railtie.rb b/gems/aws-sdk-iotthingsgraph/lib/aws-sdk-iotthingsgraph/railtie.rb new file mode 100644 index 00000000000..4dfbf9421e0 --- /dev/null +++ b/gems/aws-sdk-iotthingsgraph/lib/aws-sdk-iotthingsgraph/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module IoTThingsGraph + class Railtie < Rails::Railtie + initializer 'aws-sdk-iotthingsgraph.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::IoTThingsGraph + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-iottwinmaker/lib/aws-sdk-iottwinmaker/railtie.rb b/gems/aws-sdk-iottwinmaker/lib/aws-sdk-iottwinmaker/railtie.rb new file mode 100644 index 00000000000..3c6721ee34c --- /dev/null +++ b/gems/aws-sdk-iottwinmaker/lib/aws-sdk-iottwinmaker/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module IoTTwinMaker + class Railtie < Rails::Railtie + initializer 'aws-sdk-iottwinmaker.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::IoTTwinMaker + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-iotwireless/lib/aws-sdk-iotwireless/railtie.rb b/gems/aws-sdk-iotwireless/lib/aws-sdk-iotwireless/railtie.rb new file mode 100644 index 00000000000..63d2657ece9 --- /dev/null +++ b/gems/aws-sdk-iotwireless/lib/aws-sdk-iotwireless/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module IoTWireless + class Railtie < Rails::Railtie + initializer 'aws-sdk-iotwireless.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::IoTWireless + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-ivs/lib/aws-sdk-ivs/railtie.rb b/gems/aws-sdk-ivs/lib/aws-sdk-ivs/railtie.rb new file mode 100644 index 00000000000..11d11779d34 --- /dev/null +++ b/gems/aws-sdk-ivs/lib/aws-sdk-ivs/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module IVS + class Railtie < Rails::Railtie + initializer 'aws-sdk-ivs.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::IVS + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-ivschat/lib/aws-sdk-ivschat/railtie.rb b/gems/aws-sdk-ivschat/lib/aws-sdk-ivschat/railtie.rb new file mode 100644 index 00000000000..d94eaaa9037 --- /dev/null +++ b/gems/aws-sdk-ivschat/lib/aws-sdk-ivschat/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module Ivschat + class Railtie < Rails::Railtie + initializer 'aws-sdk-ivschat.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::Ivschat + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-ivsrealtime/lib/aws-sdk-ivsrealtime/railtie.rb b/gems/aws-sdk-ivsrealtime/lib/aws-sdk-ivsrealtime/railtie.rb new file mode 100644 index 00000000000..c730d5d71de --- /dev/null +++ b/gems/aws-sdk-ivsrealtime/lib/aws-sdk-ivsrealtime/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module IVSRealTime + class Railtie < Rails::Railtie + initializer 'aws-sdk-ivsrealtime.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::IVSRealTime + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-kafka/lib/aws-sdk-kafka/railtie.rb b/gems/aws-sdk-kafka/lib/aws-sdk-kafka/railtie.rb new file mode 100644 index 00000000000..82ce9ef7f97 --- /dev/null +++ b/gems/aws-sdk-kafka/lib/aws-sdk-kafka/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module Kafka + class Railtie < Rails::Railtie + initializer 'aws-sdk-kafka.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::Kafka + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-kafkaconnect/lib/aws-sdk-kafkaconnect/railtie.rb b/gems/aws-sdk-kafkaconnect/lib/aws-sdk-kafkaconnect/railtie.rb new file mode 100644 index 00000000000..fedcbe34e59 --- /dev/null +++ b/gems/aws-sdk-kafkaconnect/lib/aws-sdk-kafkaconnect/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module KafkaConnect + class Railtie < Rails::Railtie + initializer 'aws-sdk-kafkaconnect.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::KafkaConnect + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-kendra/lib/aws-sdk-kendra/railtie.rb b/gems/aws-sdk-kendra/lib/aws-sdk-kendra/railtie.rb new file mode 100644 index 00000000000..84fc9490427 --- /dev/null +++ b/gems/aws-sdk-kendra/lib/aws-sdk-kendra/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module Kendra + class Railtie < Rails::Railtie + initializer 'aws-sdk-kendra.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::Kendra + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-kendraranking/lib/aws-sdk-kendraranking/railtie.rb b/gems/aws-sdk-kendraranking/lib/aws-sdk-kendraranking/railtie.rb new file mode 100644 index 00000000000..641d3708ed1 --- /dev/null +++ b/gems/aws-sdk-kendraranking/lib/aws-sdk-kendraranking/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module KendraRanking + class Railtie < Rails::Railtie + initializer 'aws-sdk-kendraranking.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::KendraRanking + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-keyspaces/lib/aws-sdk-keyspaces/railtie.rb b/gems/aws-sdk-keyspaces/lib/aws-sdk-keyspaces/railtie.rb new file mode 100644 index 00000000000..ece286b3a96 --- /dev/null +++ b/gems/aws-sdk-keyspaces/lib/aws-sdk-keyspaces/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module Keyspaces + class Railtie < Rails::Railtie + initializer 'aws-sdk-keyspaces.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::Keyspaces + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-kinesis/lib/aws-sdk-kinesis/railtie.rb b/gems/aws-sdk-kinesis/lib/aws-sdk-kinesis/railtie.rb new file mode 100644 index 00000000000..e369c3b1759 --- /dev/null +++ b/gems/aws-sdk-kinesis/lib/aws-sdk-kinesis/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module Kinesis + class Railtie < Rails::Railtie + initializer 'aws-sdk-kinesis.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::Kinesis + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-kinesisanalytics/lib/aws-sdk-kinesisanalytics/railtie.rb b/gems/aws-sdk-kinesisanalytics/lib/aws-sdk-kinesisanalytics/railtie.rb new file mode 100644 index 00000000000..3d3688b472d --- /dev/null +++ b/gems/aws-sdk-kinesisanalytics/lib/aws-sdk-kinesisanalytics/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module KinesisAnalytics + class Railtie < Rails::Railtie + initializer 'aws-sdk-kinesisanalytics.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::KinesisAnalytics + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-kinesisanalyticsv2/lib/aws-sdk-kinesisanalyticsv2/railtie.rb b/gems/aws-sdk-kinesisanalyticsv2/lib/aws-sdk-kinesisanalyticsv2/railtie.rb new file mode 100644 index 00000000000..adc2183ec41 --- /dev/null +++ b/gems/aws-sdk-kinesisanalyticsv2/lib/aws-sdk-kinesisanalyticsv2/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module KinesisAnalyticsV2 + class Railtie < Rails::Railtie + initializer 'aws-sdk-kinesisanalyticsv2.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::KinesisAnalyticsV2 + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-kinesisvideo/lib/aws-sdk-kinesisvideo/railtie.rb b/gems/aws-sdk-kinesisvideo/lib/aws-sdk-kinesisvideo/railtie.rb new file mode 100644 index 00000000000..7621f4ad5a9 --- /dev/null +++ b/gems/aws-sdk-kinesisvideo/lib/aws-sdk-kinesisvideo/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module KinesisVideo + class Railtie < Rails::Railtie + initializer 'aws-sdk-kinesisvideo.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::KinesisVideo + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-kinesisvideoarchivedmedia/lib/aws-sdk-kinesisvideoarchivedmedia/railtie.rb b/gems/aws-sdk-kinesisvideoarchivedmedia/lib/aws-sdk-kinesisvideoarchivedmedia/railtie.rb new file mode 100644 index 00000000000..967d2f1b12e --- /dev/null +++ b/gems/aws-sdk-kinesisvideoarchivedmedia/lib/aws-sdk-kinesisvideoarchivedmedia/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module KinesisVideoArchivedMedia + class Railtie < Rails::Railtie + initializer 'aws-sdk-kinesisvideoarchivedmedia.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::KinesisVideoArchivedMedia + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-kinesisvideomedia/lib/aws-sdk-kinesisvideomedia/railtie.rb b/gems/aws-sdk-kinesisvideomedia/lib/aws-sdk-kinesisvideomedia/railtie.rb new file mode 100644 index 00000000000..40bde68542f --- /dev/null +++ b/gems/aws-sdk-kinesisvideomedia/lib/aws-sdk-kinesisvideomedia/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module KinesisVideoMedia + class Railtie < Rails::Railtie + initializer 'aws-sdk-kinesisvideomedia.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::KinesisVideoMedia + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-kinesisvideosignalingchannels/lib/aws-sdk-kinesisvideosignalingchannels/railtie.rb b/gems/aws-sdk-kinesisvideosignalingchannels/lib/aws-sdk-kinesisvideosignalingchannels/railtie.rb new file mode 100644 index 00000000000..bfa37ce8b42 --- /dev/null +++ b/gems/aws-sdk-kinesisvideosignalingchannels/lib/aws-sdk-kinesisvideosignalingchannels/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module KinesisVideoSignalingChannels + class Railtie < Rails::Railtie + initializer 'aws-sdk-kinesisvideosignalingchannels.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::KinesisVideoSignalingChannels + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-kinesisvideowebrtcstorage/lib/aws-sdk-kinesisvideowebrtcstorage/railtie.rb b/gems/aws-sdk-kinesisvideowebrtcstorage/lib/aws-sdk-kinesisvideowebrtcstorage/railtie.rb new file mode 100644 index 00000000000..7531d2f7654 --- /dev/null +++ b/gems/aws-sdk-kinesisvideowebrtcstorage/lib/aws-sdk-kinesisvideowebrtcstorage/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module KinesisVideoWebRTCStorage + class Railtie < Rails::Railtie + initializer 'aws-sdk-kinesisvideowebrtcstorage.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::KinesisVideoWebRTCStorage + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-kms/lib/aws-sdk-kms/railtie.rb b/gems/aws-sdk-kms/lib/aws-sdk-kms/railtie.rb new file mode 100644 index 00000000000..628508e3ccc --- /dev/null +++ b/gems/aws-sdk-kms/lib/aws-sdk-kms/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module KMS + class Railtie < Rails::Railtie + initializer 'aws-sdk-kms.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::KMS + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-lakeformation/lib/aws-sdk-lakeformation/railtie.rb b/gems/aws-sdk-lakeformation/lib/aws-sdk-lakeformation/railtie.rb new file mode 100644 index 00000000000..930fb12b72e --- /dev/null +++ b/gems/aws-sdk-lakeformation/lib/aws-sdk-lakeformation/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module LakeFormation + class Railtie < Rails::Railtie + initializer 'aws-sdk-lakeformation.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::LakeFormation + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-lambda/lib/aws-sdk-lambda/railtie.rb b/gems/aws-sdk-lambda/lib/aws-sdk-lambda/railtie.rb new file mode 100644 index 00000000000..f70a6d9f1f2 --- /dev/null +++ b/gems/aws-sdk-lambda/lib/aws-sdk-lambda/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module Lambda + class Railtie < Rails::Railtie + initializer 'aws-sdk-lambda.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::Lambda + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-launchwizard/lib/aws-sdk-launchwizard/railtie.rb b/gems/aws-sdk-launchwizard/lib/aws-sdk-launchwizard/railtie.rb new file mode 100644 index 00000000000..448e56593f9 --- /dev/null +++ b/gems/aws-sdk-launchwizard/lib/aws-sdk-launchwizard/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module LaunchWizard + class Railtie < Rails::Railtie + initializer 'aws-sdk-launchwizard.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::LaunchWizard + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-lex/lib/aws-sdk-lex/railtie.rb b/gems/aws-sdk-lex/lib/aws-sdk-lex/railtie.rb new file mode 100644 index 00000000000..84860fecb6d --- /dev/null +++ b/gems/aws-sdk-lex/lib/aws-sdk-lex/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module Lex + class Railtie < Rails::Railtie + initializer 'aws-sdk-lex.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::Lex + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-lexmodelbuildingservice/lib/aws-sdk-lexmodelbuildingservice/railtie.rb b/gems/aws-sdk-lexmodelbuildingservice/lib/aws-sdk-lexmodelbuildingservice/railtie.rb new file mode 100644 index 00000000000..74f33abad32 --- /dev/null +++ b/gems/aws-sdk-lexmodelbuildingservice/lib/aws-sdk-lexmodelbuildingservice/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module LexModelBuildingService + class Railtie < Rails::Railtie + initializer 'aws-sdk-lexmodelbuildingservice.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::LexModelBuildingService + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-lexmodelsv2/lib/aws-sdk-lexmodelsv2/railtie.rb b/gems/aws-sdk-lexmodelsv2/lib/aws-sdk-lexmodelsv2/railtie.rb new file mode 100644 index 00000000000..a8c67e64257 --- /dev/null +++ b/gems/aws-sdk-lexmodelsv2/lib/aws-sdk-lexmodelsv2/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module LexModelsV2 + class Railtie < Rails::Railtie + initializer 'aws-sdk-lexmodelsv2.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::LexModelsV2 + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-lexruntimev2/lib/aws-sdk-lexruntimev2/railtie.rb b/gems/aws-sdk-lexruntimev2/lib/aws-sdk-lexruntimev2/railtie.rb new file mode 100644 index 00000000000..060b88b6c7e --- /dev/null +++ b/gems/aws-sdk-lexruntimev2/lib/aws-sdk-lexruntimev2/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module LexRuntimeV2 + class Railtie < Rails::Railtie + initializer 'aws-sdk-lexruntimev2.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::LexRuntimeV2 + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-licensemanager/lib/aws-sdk-licensemanager/railtie.rb b/gems/aws-sdk-licensemanager/lib/aws-sdk-licensemanager/railtie.rb new file mode 100644 index 00000000000..0b896cf3b09 --- /dev/null +++ b/gems/aws-sdk-licensemanager/lib/aws-sdk-licensemanager/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module LicenseManager + class Railtie < Rails::Railtie + initializer 'aws-sdk-licensemanager.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::LicenseManager + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-licensemanagerlinuxsubscriptions/lib/aws-sdk-licensemanagerlinuxsubscriptions/railtie.rb b/gems/aws-sdk-licensemanagerlinuxsubscriptions/lib/aws-sdk-licensemanagerlinuxsubscriptions/railtie.rb new file mode 100644 index 00000000000..c46fbac2d6a --- /dev/null +++ b/gems/aws-sdk-licensemanagerlinuxsubscriptions/lib/aws-sdk-licensemanagerlinuxsubscriptions/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module LicenseManagerLinuxSubscriptions + class Railtie < Rails::Railtie + initializer 'aws-sdk-licensemanagerlinuxsubscriptions.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::LicenseManagerLinuxSubscriptions + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-licensemanagerusersubscriptions/lib/aws-sdk-licensemanagerusersubscriptions/railtie.rb b/gems/aws-sdk-licensemanagerusersubscriptions/lib/aws-sdk-licensemanagerusersubscriptions/railtie.rb new file mode 100644 index 00000000000..b03dbdc97f5 --- /dev/null +++ b/gems/aws-sdk-licensemanagerusersubscriptions/lib/aws-sdk-licensemanagerusersubscriptions/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module LicenseManagerUserSubscriptions + class Railtie < Rails::Railtie + initializer 'aws-sdk-licensemanagerusersubscriptions.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::LicenseManagerUserSubscriptions + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-lightsail/lib/aws-sdk-lightsail/railtie.rb b/gems/aws-sdk-lightsail/lib/aws-sdk-lightsail/railtie.rb new file mode 100644 index 00000000000..146047c8cb3 --- /dev/null +++ b/gems/aws-sdk-lightsail/lib/aws-sdk-lightsail/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module Lightsail + class Railtie < Rails::Railtie + initializer 'aws-sdk-lightsail.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::Lightsail + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-locationservice/lib/aws-sdk-locationservice/railtie.rb b/gems/aws-sdk-locationservice/lib/aws-sdk-locationservice/railtie.rb new file mode 100644 index 00000000000..e57f5dc1c4d --- /dev/null +++ b/gems/aws-sdk-locationservice/lib/aws-sdk-locationservice/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module LocationService + class Railtie < Rails::Railtie + initializer 'aws-sdk-locationservice.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::LocationService + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-lookoutequipment/lib/aws-sdk-lookoutequipment/railtie.rb b/gems/aws-sdk-lookoutequipment/lib/aws-sdk-lookoutequipment/railtie.rb new file mode 100644 index 00000000000..94f34f353a8 --- /dev/null +++ b/gems/aws-sdk-lookoutequipment/lib/aws-sdk-lookoutequipment/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module LookoutEquipment + class Railtie < Rails::Railtie + initializer 'aws-sdk-lookoutequipment.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::LookoutEquipment + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-lookoutforvision/lib/aws-sdk-lookoutforvision/railtie.rb b/gems/aws-sdk-lookoutforvision/lib/aws-sdk-lookoutforvision/railtie.rb new file mode 100644 index 00000000000..45e5e1b01f2 --- /dev/null +++ b/gems/aws-sdk-lookoutforvision/lib/aws-sdk-lookoutforvision/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module LookoutforVision + class Railtie < Rails::Railtie + initializer 'aws-sdk-lookoutforvision.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::LookoutforVision + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-lookoutmetrics/lib/aws-sdk-lookoutmetrics/railtie.rb b/gems/aws-sdk-lookoutmetrics/lib/aws-sdk-lookoutmetrics/railtie.rb new file mode 100644 index 00000000000..579b753dfc2 --- /dev/null +++ b/gems/aws-sdk-lookoutmetrics/lib/aws-sdk-lookoutmetrics/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module LookoutMetrics + class Railtie < Rails::Railtie + initializer 'aws-sdk-lookoutmetrics.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::LookoutMetrics + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-machinelearning/lib/aws-sdk-machinelearning/railtie.rb b/gems/aws-sdk-machinelearning/lib/aws-sdk-machinelearning/railtie.rb new file mode 100644 index 00000000000..9558206370f --- /dev/null +++ b/gems/aws-sdk-machinelearning/lib/aws-sdk-machinelearning/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module MachineLearning + class Railtie < Rails::Railtie + initializer 'aws-sdk-machinelearning.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::MachineLearning + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-macie2/lib/aws-sdk-macie2/railtie.rb b/gems/aws-sdk-macie2/lib/aws-sdk-macie2/railtie.rb new file mode 100644 index 00000000000..95969024249 --- /dev/null +++ b/gems/aws-sdk-macie2/lib/aws-sdk-macie2/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module Macie2 + class Railtie < Rails::Railtie + initializer 'aws-sdk-macie2.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::Macie2 + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-mailmanager/lib/aws-sdk-mailmanager/railtie.rb b/gems/aws-sdk-mailmanager/lib/aws-sdk-mailmanager/railtie.rb new file mode 100644 index 00000000000..2263d509197 --- /dev/null +++ b/gems/aws-sdk-mailmanager/lib/aws-sdk-mailmanager/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module MailManager + class Railtie < Rails::Railtie + initializer 'aws-sdk-mailmanager.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::MailManager + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-mainframemodernization/lib/aws-sdk-mainframemodernization/railtie.rb b/gems/aws-sdk-mainframemodernization/lib/aws-sdk-mainframemodernization/railtie.rb new file mode 100644 index 00000000000..4c926e25a31 --- /dev/null +++ b/gems/aws-sdk-mainframemodernization/lib/aws-sdk-mainframemodernization/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module MainframeModernization + class Railtie < Rails::Railtie + initializer 'aws-sdk-mainframemodernization.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::MainframeModernization + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-managedblockchain/lib/aws-sdk-managedblockchain/railtie.rb b/gems/aws-sdk-managedblockchain/lib/aws-sdk-managedblockchain/railtie.rb new file mode 100644 index 00000000000..8d3a27ed1e9 --- /dev/null +++ b/gems/aws-sdk-managedblockchain/lib/aws-sdk-managedblockchain/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module ManagedBlockchain + class Railtie < Rails::Railtie + initializer 'aws-sdk-managedblockchain.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::ManagedBlockchain + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-managedblockchainquery/lib/aws-sdk-managedblockchainquery/railtie.rb b/gems/aws-sdk-managedblockchainquery/lib/aws-sdk-managedblockchainquery/railtie.rb new file mode 100644 index 00000000000..bfa80e83bbd --- /dev/null +++ b/gems/aws-sdk-managedblockchainquery/lib/aws-sdk-managedblockchainquery/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module ManagedBlockchainQuery + class Railtie < Rails::Railtie + initializer 'aws-sdk-managedblockchainquery.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::ManagedBlockchainQuery + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-managedgrafana/lib/aws-sdk-managedgrafana/railtie.rb b/gems/aws-sdk-managedgrafana/lib/aws-sdk-managedgrafana/railtie.rb new file mode 100644 index 00000000000..47b0938009f --- /dev/null +++ b/gems/aws-sdk-managedgrafana/lib/aws-sdk-managedgrafana/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module ManagedGrafana + class Railtie < Rails::Railtie + initializer 'aws-sdk-managedgrafana.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::ManagedGrafana + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-marketplaceagreement/lib/aws-sdk-marketplaceagreement/railtie.rb b/gems/aws-sdk-marketplaceagreement/lib/aws-sdk-marketplaceagreement/railtie.rb new file mode 100644 index 00000000000..8ff20e5c3ce --- /dev/null +++ b/gems/aws-sdk-marketplaceagreement/lib/aws-sdk-marketplaceagreement/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module MarketplaceAgreement + class Railtie < Rails::Railtie + initializer 'aws-sdk-marketplaceagreement.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::MarketplaceAgreement + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-marketplacecatalog/lib/aws-sdk-marketplacecatalog/railtie.rb b/gems/aws-sdk-marketplacecatalog/lib/aws-sdk-marketplacecatalog/railtie.rb new file mode 100644 index 00000000000..48e7b93b9d2 --- /dev/null +++ b/gems/aws-sdk-marketplacecatalog/lib/aws-sdk-marketplacecatalog/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module MarketplaceCatalog + class Railtie < Rails::Railtie + initializer 'aws-sdk-marketplacecatalog.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::MarketplaceCatalog + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-marketplacecommerceanalytics/lib/aws-sdk-marketplacecommerceanalytics/railtie.rb b/gems/aws-sdk-marketplacecommerceanalytics/lib/aws-sdk-marketplacecommerceanalytics/railtie.rb new file mode 100644 index 00000000000..8d7a88d410a --- /dev/null +++ b/gems/aws-sdk-marketplacecommerceanalytics/lib/aws-sdk-marketplacecommerceanalytics/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module MarketplaceCommerceAnalytics + class Railtie < Rails::Railtie + initializer 'aws-sdk-marketplacecommerceanalytics.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::MarketplaceCommerceAnalytics + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-marketplacedeployment/lib/aws-sdk-marketplacedeployment/railtie.rb b/gems/aws-sdk-marketplacedeployment/lib/aws-sdk-marketplacedeployment/railtie.rb new file mode 100644 index 00000000000..5d922f8e472 --- /dev/null +++ b/gems/aws-sdk-marketplacedeployment/lib/aws-sdk-marketplacedeployment/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module MarketplaceDeployment + class Railtie < Rails::Railtie + initializer 'aws-sdk-marketplacedeployment.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::MarketplaceDeployment + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-marketplaceentitlementservice/lib/aws-sdk-marketplaceentitlementservice/railtie.rb b/gems/aws-sdk-marketplaceentitlementservice/lib/aws-sdk-marketplaceentitlementservice/railtie.rb new file mode 100644 index 00000000000..31bc6d7daa3 --- /dev/null +++ b/gems/aws-sdk-marketplaceentitlementservice/lib/aws-sdk-marketplaceentitlementservice/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module MarketplaceEntitlementService + class Railtie < Rails::Railtie + initializer 'aws-sdk-marketplaceentitlementservice.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::MarketplaceEntitlementService + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-marketplacemetering/lib/aws-sdk-marketplacemetering/railtie.rb b/gems/aws-sdk-marketplacemetering/lib/aws-sdk-marketplacemetering/railtie.rb new file mode 100644 index 00000000000..9b1f16a3d70 --- /dev/null +++ b/gems/aws-sdk-marketplacemetering/lib/aws-sdk-marketplacemetering/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module MarketplaceMetering + class Railtie < Rails::Railtie + initializer 'aws-sdk-marketplacemetering.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::MarketplaceMetering + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-mediaconnect/lib/aws-sdk-mediaconnect/railtie.rb b/gems/aws-sdk-mediaconnect/lib/aws-sdk-mediaconnect/railtie.rb new file mode 100644 index 00000000000..4e27c8ee2a4 --- /dev/null +++ b/gems/aws-sdk-mediaconnect/lib/aws-sdk-mediaconnect/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module MediaConnect + class Railtie < Rails::Railtie + initializer 'aws-sdk-mediaconnect.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::MediaConnect + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-mediaconvert/lib/aws-sdk-mediaconvert/railtie.rb b/gems/aws-sdk-mediaconvert/lib/aws-sdk-mediaconvert/railtie.rb new file mode 100644 index 00000000000..c988171decf --- /dev/null +++ b/gems/aws-sdk-mediaconvert/lib/aws-sdk-mediaconvert/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module MediaConvert + class Railtie < Rails::Railtie + initializer 'aws-sdk-mediaconvert.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::MediaConvert + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-medialive/lib/aws-sdk-medialive/railtie.rb b/gems/aws-sdk-medialive/lib/aws-sdk-medialive/railtie.rb new file mode 100644 index 00000000000..ee8d82c435c --- /dev/null +++ b/gems/aws-sdk-medialive/lib/aws-sdk-medialive/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module MediaLive + class Railtie < Rails::Railtie + initializer 'aws-sdk-medialive.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::MediaLive + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-mediapackage/lib/aws-sdk-mediapackage/railtie.rb b/gems/aws-sdk-mediapackage/lib/aws-sdk-mediapackage/railtie.rb new file mode 100644 index 00000000000..beb35faec0a --- /dev/null +++ b/gems/aws-sdk-mediapackage/lib/aws-sdk-mediapackage/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module MediaPackage + class Railtie < Rails::Railtie + initializer 'aws-sdk-mediapackage.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::MediaPackage + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-mediapackagev2/lib/aws-sdk-mediapackagev2/railtie.rb b/gems/aws-sdk-mediapackagev2/lib/aws-sdk-mediapackagev2/railtie.rb new file mode 100644 index 00000000000..0d04b3124d7 --- /dev/null +++ b/gems/aws-sdk-mediapackagev2/lib/aws-sdk-mediapackagev2/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module MediaPackageV2 + class Railtie < Rails::Railtie + initializer 'aws-sdk-mediapackagev2.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::MediaPackageV2 + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-mediapackagevod/lib/aws-sdk-mediapackagevod/railtie.rb b/gems/aws-sdk-mediapackagevod/lib/aws-sdk-mediapackagevod/railtie.rb new file mode 100644 index 00000000000..e02625ea625 --- /dev/null +++ b/gems/aws-sdk-mediapackagevod/lib/aws-sdk-mediapackagevod/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module MediaPackageVod + class Railtie < Rails::Railtie + initializer 'aws-sdk-mediapackagevod.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::MediaPackageVod + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-mediastore/lib/aws-sdk-mediastore/railtie.rb b/gems/aws-sdk-mediastore/lib/aws-sdk-mediastore/railtie.rb new file mode 100644 index 00000000000..1ee699d8868 --- /dev/null +++ b/gems/aws-sdk-mediastore/lib/aws-sdk-mediastore/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module MediaStore + class Railtie < Rails::Railtie + initializer 'aws-sdk-mediastore.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::MediaStore + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-mediastoredata/lib/aws-sdk-mediastoredata/railtie.rb b/gems/aws-sdk-mediastoredata/lib/aws-sdk-mediastoredata/railtie.rb new file mode 100644 index 00000000000..1ee47bd855d --- /dev/null +++ b/gems/aws-sdk-mediastoredata/lib/aws-sdk-mediastoredata/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module MediaStoreData + class Railtie < Rails::Railtie + initializer 'aws-sdk-mediastoredata.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::MediaStoreData + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-mediatailor/lib/aws-sdk-mediatailor/railtie.rb b/gems/aws-sdk-mediatailor/lib/aws-sdk-mediatailor/railtie.rb new file mode 100644 index 00000000000..1435472c694 --- /dev/null +++ b/gems/aws-sdk-mediatailor/lib/aws-sdk-mediatailor/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module MediaTailor + class Railtie < Rails::Railtie + initializer 'aws-sdk-mediatailor.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::MediaTailor + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-medicalimaging/lib/aws-sdk-medicalimaging/railtie.rb b/gems/aws-sdk-medicalimaging/lib/aws-sdk-medicalimaging/railtie.rb new file mode 100644 index 00000000000..c8ec7895102 --- /dev/null +++ b/gems/aws-sdk-medicalimaging/lib/aws-sdk-medicalimaging/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module MedicalImaging + class Railtie < Rails::Railtie + initializer 'aws-sdk-medicalimaging.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::MedicalImaging + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-memorydb/lib/aws-sdk-memorydb/railtie.rb b/gems/aws-sdk-memorydb/lib/aws-sdk-memorydb/railtie.rb new file mode 100644 index 00000000000..4fe00c7c026 --- /dev/null +++ b/gems/aws-sdk-memorydb/lib/aws-sdk-memorydb/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module MemoryDB + class Railtie < Rails::Railtie + initializer 'aws-sdk-memorydb.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::MemoryDB + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-mgn/lib/aws-sdk-mgn/railtie.rb b/gems/aws-sdk-mgn/lib/aws-sdk-mgn/railtie.rb new file mode 100644 index 00000000000..fbf196871ff --- /dev/null +++ b/gems/aws-sdk-mgn/lib/aws-sdk-mgn/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module Mgn + class Railtie < Rails::Railtie + initializer 'aws-sdk-mgn.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::Mgn + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-migrationhub/lib/aws-sdk-migrationhub/railtie.rb b/gems/aws-sdk-migrationhub/lib/aws-sdk-migrationhub/railtie.rb new file mode 100644 index 00000000000..5c73a394e06 --- /dev/null +++ b/gems/aws-sdk-migrationhub/lib/aws-sdk-migrationhub/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module MigrationHub + class Railtie < Rails::Railtie + initializer 'aws-sdk-migrationhub.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::MigrationHub + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-migrationhubconfig/lib/aws-sdk-migrationhubconfig/railtie.rb b/gems/aws-sdk-migrationhubconfig/lib/aws-sdk-migrationhubconfig/railtie.rb new file mode 100644 index 00000000000..51723331a0e --- /dev/null +++ b/gems/aws-sdk-migrationhubconfig/lib/aws-sdk-migrationhubconfig/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module MigrationHubConfig + class Railtie < Rails::Railtie + initializer 'aws-sdk-migrationhubconfig.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::MigrationHubConfig + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-migrationhuborchestrator/lib/aws-sdk-migrationhuborchestrator/railtie.rb b/gems/aws-sdk-migrationhuborchestrator/lib/aws-sdk-migrationhuborchestrator/railtie.rb new file mode 100644 index 00000000000..279942864dc --- /dev/null +++ b/gems/aws-sdk-migrationhuborchestrator/lib/aws-sdk-migrationhuborchestrator/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module MigrationHubOrchestrator + class Railtie < Rails::Railtie + initializer 'aws-sdk-migrationhuborchestrator.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::MigrationHubOrchestrator + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-migrationhubrefactorspaces/lib/aws-sdk-migrationhubrefactorspaces/railtie.rb b/gems/aws-sdk-migrationhubrefactorspaces/lib/aws-sdk-migrationhubrefactorspaces/railtie.rb new file mode 100644 index 00000000000..2c5a7672537 --- /dev/null +++ b/gems/aws-sdk-migrationhubrefactorspaces/lib/aws-sdk-migrationhubrefactorspaces/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module MigrationHubRefactorSpaces + class Railtie < Rails::Railtie + initializer 'aws-sdk-migrationhubrefactorspaces.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::MigrationHubRefactorSpaces + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-migrationhubstrategyrecommendations/lib/aws-sdk-migrationhubstrategyrecommendations/railtie.rb b/gems/aws-sdk-migrationhubstrategyrecommendations/lib/aws-sdk-migrationhubstrategyrecommendations/railtie.rb new file mode 100644 index 00000000000..50a541de33d --- /dev/null +++ b/gems/aws-sdk-migrationhubstrategyrecommendations/lib/aws-sdk-migrationhubstrategyrecommendations/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module MigrationHubStrategyRecommendations + class Railtie < Rails::Railtie + initializer 'aws-sdk-migrationhubstrategyrecommendations.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::MigrationHubStrategyRecommendations + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-mq/lib/aws-sdk-mq/railtie.rb b/gems/aws-sdk-mq/lib/aws-sdk-mq/railtie.rb new file mode 100644 index 00000000000..a301993c81f --- /dev/null +++ b/gems/aws-sdk-mq/lib/aws-sdk-mq/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module MQ + class Railtie < Rails::Railtie + initializer 'aws-sdk-mq.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::MQ + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-mturk/lib/aws-sdk-mturk/railtie.rb b/gems/aws-sdk-mturk/lib/aws-sdk-mturk/railtie.rb new file mode 100644 index 00000000000..fa6f76c97fe --- /dev/null +++ b/gems/aws-sdk-mturk/lib/aws-sdk-mturk/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module MTurk + class Railtie < Rails::Railtie + initializer 'aws-sdk-mturk.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::MTurk + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-mwaa/lib/aws-sdk-mwaa/railtie.rb b/gems/aws-sdk-mwaa/lib/aws-sdk-mwaa/railtie.rb new file mode 100644 index 00000000000..47d608616e0 --- /dev/null +++ b/gems/aws-sdk-mwaa/lib/aws-sdk-mwaa/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module MWAA + class Railtie < Rails::Railtie + initializer 'aws-sdk-mwaa.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::MWAA + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-neptune/lib/aws-sdk-neptune/railtie.rb b/gems/aws-sdk-neptune/lib/aws-sdk-neptune/railtie.rb new file mode 100644 index 00000000000..a0584399c64 --- /dev/null +++ b/gems/aws-sdk-neptune/lib/aws-sdk-neptune/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module Neptune + class Railtie < Rails::Railtie + initializer 'aws-sdk-neptune.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::Neptune + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-neptunedata/lib/aws-sdk-neptunedata/railtie.rb b/gems/aws-sdk-neptunedata/lib/aws-sdk-neptunedata/railtie.rb new file mode 100644 index 00000000000..7efb891a32d --- /dev/null +++ b/gems/aws-sdk-neptunedata/lib/aws-sdk-neptunedata/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module Neptunedata + class Railtie < Rails::Railtie + initializer 'aws-sdk-neptunedata.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::Neptunedata + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-neptunegraph/lib/aws-sdk-neptunegraph/railtie.rb b/gems/aws-sdk-neptunegraph/lib/aws-sdk-neptunegraph/railtie.rb new file mode 100644 index 00000000000..992450fc95a --- /dev/null +++ b/gems/aws-sdk-neptunegraph/lib/aws-sdk-neptunegraph/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module NeptuneGraph + class Railtie < Rails::Railtie + initializer 'aws-sdk-neptunegraph.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::NeptuneGraph + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-networkfirewall/lib/aws-sdk-networkfirewall/railtie.rb b/gems/aws-sdk-networkfirewall/lib/aws-sdk-networkfirewall/railtie.rb new file mode 100644 index 00000000000..9bb13274b4a --- /dev/null +++ b/gems/aws-sdk-networkfirewall/lib/aws-sdk-networkfirewall/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module NetworkFirewall + class Railtie < Rails::Railtie + initializer 'aws-sdk-networkfirewall.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::NetworkFirewall + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-networkmanager/lib/aws-sdk-networkmanager/railtie.rb b/gems/aws-sdk-networkmanager/lib/aws-sdk-networkmanager/railtie.rb new file mode 100644 index 00000000000..ab3e0679521 --- /dev/null +++ b/gems/aws-sdk-networkmanager/lib/aws-sdk-networkmanager/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module NetworkManager + class Railtie < Rails::Railtie + initializer 'aws-sdk-networkmanager.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::NetworkManager + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-networkmonitor/lib/aws-sdk-networkmonitor/railtie.rb b/gems/aws-sdk-networkmonitor/lib/aws-sdk-networkmonitor/railtie.rb new file mode 100644 index 00000000000..ce1cda55a16 --- /dev/null +++ b/gems/aws-sdk-networkmonitor/lib/aws-sdk-networkmonitor/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module NetworkMonitor + class Railtie < Rails::Railtie + initializer 'aws-sdk-networkmonitor.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::NetworkMonitor + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-nimblestudio/lib/aws-sdk-nimblestudio/railtie.rb b/gems/aws-sdk-nimblestudio/lib/aws-sdk-nimblestudio/railtie.rb new file mode 100644 index 00000000000..6a5b770f866 --- /dev/null +++ b/gems/aws-sdk-nimblestudio/lib/aws-sdk-nimblestudio/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module NimbleStudio + class Railtie < Rails::Railtie + initializer 'aws-sdk-nimblestudio.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::NimbleStudio + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-oam/lib/aws-sdk-oam/railtie.rb b/gems/aws-sdk-oam/lib/aws-sdk-oam/railtie.rb new file mode 100644 index 00000000000..c0aa8c1e63d --- /dev/null +++ b/gems/aws-sdk-oam/lib/aws-sdk-oam/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module OAM + class Railtie < Rails::Railtie + initializer 'aws-sdk-oam.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::OAM + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-omics/lib/aws-sdk-omics/railtie.rb b/gems/aws-sdk-omics/lib/aws-sdk-omics/railtie.rb new file mode 100644 index 00000000000..0aecb78d386 --- /dev/null +++ b/gems/aws-sdk-omics/lib/aws-sdk-omics/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module Omics + class Railtie < Rails::Railtie + initializer 'aws-sdk-omics.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::Omics + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-opensearchserverless/lib/aws-sdk-opensearchserverless/railtie.rb b/gems/aws-sdk-opensearchserverless/lib/aws-sdk-opensearchserverless/railtie.rb new file mode 100644 index 00000000000..deb443b77d4 --- /dev/null +++ b/gems/aws-sdk-opensearchserverless/lib/aws-sdk-opensearchserverless/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module OpenSearchServerless + class Railtie < Rails::Railtie + initializer 'aws-sdk-opensearchserverless.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::OpenSearchServerless + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-opensearchservice/lib/aws-sdk-opensearchservice/railtie.rb b/gems/aws-sdk-opensearchservice/lib/aws-sdk-opensearchservice/railtie.rb new file mode 100644 index 00000000000..c49a10b1a5b --- /dev/null +++ b/gems/aws-sdk-opensearchservice/lib/aws-sdk-opensearchservice/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module OpenSearchService + class Railtie < Rails::Railtie + initializer 'aws-sdk-opensearchservice.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::OpenSearchService + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-opsworks/lib/aws-sdk-opsworks/railtie.rb b/gems/aws-sdk-opsworks/lib/aws-sdk-opsworks/railtie.rb new file mode 100644 index 00000000000..80b581a1661 --- /dev/null +++ b/gems/aws-sdk-opsworks/lib/aws-sdk-opsworks/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module OpsWorks + class Railtie < Rails::Railtie + initializer 'aws-sdk-opsworks.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::OpsWorks + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-opsworkscm/lib/aws-sdk-opsworkscm/railtie.rb b/gems/aws-sdk-opsworkscm/lib/aws-sdk-opsworkscm/railtie.rb new file mode 100644 index 00000000000..e2e33f330de --- /dev/null +++ b/gems/aws-sdk-opsworkscm/lib/aws-sdk-opsworkscm/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module OpsWorksCM + class Railtie < Rails::Railtie + initializer 'aws-sdk-opsworkscm.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::OpsWorksCM + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-organizations/lib/aws-sdk-organizations/railtie.rb b/gems/aws-sdk-organizations/lib/aws-sdk-organizations/railtie.rb new file mode 100644 index 00000000000..40b0348452a --- /dev/null +++ b/gems/aws-sdk-organizations/lib/aws-sdk-organizations/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module Organizations + class Railtie < Rails::Railtie + initializer 'aws-sdk-organizations.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::Organizations + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-osis/lib/aws-sdk-osis/railtie.rb b/gems/aws-sdk-osis/lib/aws-sdk-osis/railtie.rb new file mode 100644 index 00000000000..35d4b281390 --- /dev/null +++ b/gems/aws-sdk-osis/lib/aws-sdk-osis/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module OSIS + class Railtie < Rails::Railtie + initializer 'aws-sdk-osis.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::OSIS + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-outposts/lib/aws-sdk-outposts/railtie.rb b/gems/aws-sdk-outposts/lib/aws-sdk-outposts/railtie.rb new file mode 100644 index 00000000000..8013d7e1abf --- /dev/null +++ b/gems/aws-sdk-outposts/lib/aws-sdk-outposts/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module Outposts + class Railtie < Rails::Railtie + initializer 'aws-sdk-outposts.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::Outposts + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-panorama/lib/aws-sdk-panorama/railtie.rb b/gems/aws-sdk-panorama/lib/aws-sdk-panorama/railtie.rb new file mode 100644 index 00000000000..9d4d2e12f41 --- /dev/null +++ b/gems/aws-sdk-panorama/lib/aws-sdk-panorama/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module Panorama + class Railtie < Rails::Railtie + initializer 'aws-sdk-panorama.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::Panorama + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-paymentcryptography/lib/aws-sdk-paymentcryptography/railtie.rb b/gems/aws-sdk-paymentcryptography/lib/aws-sdk-paymentcryptography/railtie.rb new file mode 100644 index 00000000000..0f4d6c06b59 --- /dev/null +++ b/gems/aws-sdk-paymentcryptography/lib/aws-sdk-paymentcryptography/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module PaymentCryptography + class Railtie < Rails::Railtie + initializer 'aws-sdk-paymentcryptography.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::PaymentCryptography + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-paymentcryptographydata/lib/aws-sdk-paymentcryptographydata/railtie.rb b/gems/aws-sdk-paymentcryptographydata/lib/aws-sdk-paymentcryptographydata/railtie.rb new file mode 100644 index 00000000000..2198bb38414 --- /dev/null +++ b/gems/aws-sdk-paymentcryptographydata/lib/aws-sdk-paymentcryptographydata/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module PaymentCryptographyData + class Railtie < Rails::Railtie + initializer 'aws-sdk-paymentcryptographydata.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::PaymentCryptographyData + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-pcaconnectorad/lib/aws-sdk-pcaconnectorad/railtie.rb b/gems/aws-sdk-pcaconnectorad/lib/aws-sdk-pcaconnectorad/railtie.rb new file mode 100644 index 00000000000..620c6488965 --- /dev/null +++ b/gems/aws-sdk-pcaconnectorad/lib/aws-sdk-pcaconnectorad/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module PcaConnectorAd + class Railtie < Rails::Railtie + initializer 'aws-sdk-pcaconnectorad.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::PcaConnectorAd + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-pcaconnectorscep/lib/aws-sdk-pcaconnectorscep/railtie.rb b/gems/aws-sdk-pcaconnectorscep/lib/aws-sdk-pcaconnectorscep/railtie.rb new file mode 100644 index 00000000000..f65c310e041 --- /dev/null +++ b/gems/aws-sdk-pcaconnectorscep/lib/aws-sdk-pcaconnectorscep/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module PcaConnectorScep + class Railtie < Rails::Railtie + initializer 'aws-sdk-pcaconnectorscep.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::PcaConnectorScep + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-pcs/lib/aws-sdk-pcs/railtie.rb b/gems/aws-sdk-pcs/lib/aws-sdk-pcs/railtie.rb new file mode 100644 index 00000000000..6ce6d385b42 --- /dev/null +++ b/gems/aws-sdk-pcs/lib/aws-sdk-pcs/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module LambdaPreview + class Railtie < Rails::Railtie + initializer 'aws-sdk-lambdapreview.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::LambdaPreview + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-personalize/lib/aws-sdk-personalize/railtie.rb b/gems/aws-sdk-personalize/lib/aws-sdk-personalize/railtie.rb new file mode 100644 index 00000000000..431e1381d55 --- /dev/null +++ b/gems/aws-sdk-personalize/lib/aws-sdk-personalize/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module Personalize + class Railtie < Rails::Railtie + initializer 'aws-sdk-personalize.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::Personalize + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-personalizeevents/lib/aws-sdk-personalizeevents/railtie.rb b/gems/aws-sdk-personalizeevents/lib/aws-sdk-personalizeevents/railtie.rb new file mode 100644 index 00000000000..d88669bb66e --- /dev/null +++ b/gems/aws-sdk-personalizeevents/lib/aws-sdk-personalizeevents/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module PersonalizeEvents + class Railtie < Rails::Railtie + initializer 'aws-sdk-personalizeevents.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::PersonalizeEvents + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-personalizeruntime/lib/aws-sdk-personalizeruntime/railtie.rb b/gems/aws-sdk-personalizeruntime/lib/aws-sdk-personalizeruntime/railtie.rb new file mode 100644 index 00000000000..e379880f892 --- /dev/null +++ b/gems/aws-sdk-personalizeruntime/lib/aws-sdk-personalizeruntime/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module PersonalizeRuntime + class Railtie < Rails::Railtie + initializer 'aws-sdk-personalizeruntime.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::PersonalizeRuntime + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-pi/lib/aws-sdk-pi/railtie.rb b/gems/aws-sdk-pi/lib/aws-sdk-pi/railtie.rb new file mode 100644 index 00000000000..46017902fa0 --- /dev/null +++ b/gems/aws-sdk-pi/lib/aws-sdk-pi/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module PI + class Railtie < Rails::Railtie + initializer 'aws-sdk-pi.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::PI + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-pinpoint/lib/aws-sdk-pinpoint/railtie.rb b/gems/aws-sdk-pinpoint/lib/aws-sdk-pinpoint/railtie.rb new file mode 100644 index 00000000000..3b7c0e69879 --- /dev/null +++ b/gems/aws-sdk-pinpoint/lib/aws-sdk-pinpoint/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module Pinpoint + class Railtie < Rails::Railtie + initializer 'aws-sdk-pinpoint.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::Pinpoint + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-pinpointemail/lib/aws-sdk-pinpointemail/railtie.rb b/gems/aws-sdk-pinpointemail/lib/aws-sdk-pinpointemail/railtie.rb new file mode 100644 index 00000000000..2cdda0556e0 --- /dev/null +++ b/gems/aws-sdk-pinpointemail/lib/aws-sdk-pinpointemail/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module PinpointEmail + class Railtie < Rails::Railtie + initializer 'aws-sdk-pinpointemail.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::PinpointEmail + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-pinpointsmsvoice/lib/aws-sdk-pinpointsmsvoice/railtie.rb b/gems/aws-sdk-pinpointsmsvoice/lib/aws-sdk-pinpointsmsvoice/railtie.rb new file mode 100644 index 00000000000..c9b12b5a5f4 --- /dev/null +++ b/gems/aws-sdk-pinpointsmsvoice/lib/aws-sdk-pinpointsmsvoice/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module PinpointSMSVoice + class Railtie < Rails::Railtie + initializer 'aws-sdk-pinpointsmsvoice.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::PinpointSMSVoice + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-pinpointsmsvoicev2/lib/aws-sdk-pinpointsmsvoicev2/railtie.rb b/gems/aws-sdk-pinpointsmsvoicev2/lib/aws-sdk-pinpointsmsvoicev2/railtie.rb new file mode 100644 index 00000000000..7b2f9f1d9b9 --- /dev/null +++ b/gems/aws-sdk-pinpointsmsvoicev2/lib/aws-sdk-pinpointsmsvoicev2/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module PinpointSMSVoiceV2 + class Railtie < Rails::Railtie + initializer 'aws-sdk-pinpointsmsvoicev2.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::PinpointSMSVoiceV2 + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-pipes/lib/aws-sdk-pipes/railtie.rb b/gems/aws-sdk-pipes/lib/aws-sdk-pipes/railtie.rb new file mode 100644 index 00000000000..2dbfccff3c1 --- /dev/null +++ b/gems/aws-sdk-pipes/lib/aws-sdk-pipes/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module Pipes + class Railtie < Rails::Railtie + initializer 'aws-sdk-pipes.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::Pipes + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-polly/lib/aws-sdk-polly/customizations.rb b/gems/aws-sdk-polly/lib/aws-sdk-polly/customizations.rb index 2c0111c719d..81774844718 100644 --- a/gems/aws-sdk-polly/lib/aws-sdk-polly/customizations.rb +++ b/gems/aws-sdk-polly/lib/aws-sdk-polly/customizations.rb @@ -1,4 +1,8 @@ # frozen_string_literal: true # utility classes -require 'aws-sdk-polly/presigner' +module Aws + module Polly + autoload :Presigner, 'aws-sdk-polly/presigner' + end +end diff --git a/gems/aws-sdk-polly/lib/aws-sdk-polly/railtie.rb b/gems/aws-sdk-polly/lib/aws-sdk-polly/railtie.rb new file mode 100644 index 00000000000..4867889b368 --- /dev/null +++ b/gems/aws-sdk-polly/lib/aws-sdk-polly/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module Polly + class Railtie < Rails::Railtie + initializer 'aws-sdk-polly.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::Polly + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-pricing/lib/aws-sdk-pricing/railtie.rb b/gems/aws-sdk-pricing/lib/aws-sdk-pricing/railtie.rb new file mode 100644 index 00000000000..78b5119b361 --- /dev/null +++ b/gems/aws-sdk-pricing/lib/aws-sdk-pricing/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module Pricing + class Railtie < Rails::Railtie + initializer 'aws-sdk-pricing.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::Pricing + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-privatenetworks/lib/aws-sdk-privatenetworks/railtie.rb b/gems/aws-sdk-privatenetworks/lib/aws-sdk-privatenetworks/railtie.rb new file mode 100644 index 00000000000..a6a5d74fa82 --- /dev/null +++ b/gems/aws-sdk-privatenetworks/lib/aws-sdk-privatenetworks/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module PrivateNetworks + class Railtie < Rails::Railtie + initializer 'aws-sdk-privatenetworks.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::PrivateNetworks + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-prometheusservice/lib/aws-sdk-prometheusservice/railtie.rb b/gems/aws-sdk-prometheusservice/lib/aws-sdk-prometheusservice/railtie.rb new file mode 100644 index 00000000000..fa83cef4960 --- /dev/null +++ b/gems/aws-sdk-prometheusservice/lib/aws-sdk-prometheusservice/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module PrometheusService + class Railtie < Rails::Railtie + initializer 'aws-sdk-prometheusservice.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::PrometheusService + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-proton/lib/aws-sdk-proton/railtie.rb b/gems/aws-sdk-proton/lib/aws-sdk-proton/railtie.rb new file mode 100644 index 00000000000..a9f58376c3a --- /dev/null +++ b/gems/aws-sdk-proton/lib/aws-sdk-proton/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module Proton + class Railtie < Rails::Railtie + initializer 'aws-sdk-proton.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::Proton + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-qapps/lib/aws-sdk-qapps/railtie.rb b/gems/aws-sdk-qapps/lib/aws-sdk-qapps/railtie.rb new file mode 100644 index 00000000000..91a49aef8f2 --- /dev/null +++ b/gems/aws-sdk-qapps/lib/aws-sdk-qapps/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module QApps + class Railtie < Rails::Railtie + initializer 'aws-sdk-qapps.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::QApps + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-qbusiness/lib/aws-sdk-qbusiness/railtie.rb b/gems/aws-sdk-qbusiness/lib/aws-sdk-qbusiness/railtie.rb new file mode 100644 index 00000000000..9c61b08575e --- /dev/null +++ b/gems/aws-sdk-qbusiness/lib/aws-sdk-qbusiness/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module QBusiness + class Railtie < Rails::Railtie + initializer 'aws-sdk-qbusiness.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::QBusiness + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-qconnect/lib/aws-sdk-qconnect/railtie.rb b/gems/aws-sdk-qconnect/lib/aws-sdk-qconnect/railtie.rb new file mode 100644 index 00000000000..b4398e7b69c --- /dev/null +++ b/gems/aws-sdk-qconnect/lib/aws-sdk-qconnect/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module QConnect + class Railtie < Rails::Railtie + initializer 'aws-sdk-qconnect.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::QConnect + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-qldb/lib/aws-sdk-qldb/railtie.rb b/gems/aws-sdk-qldb/lib/aws-sdk-qldb/railtie.rb new file mode 100644 index 00000000000..781eb9275bb --- /dev/null +++ b/gems/aws-sdk-qldb/lib/aws-sdk-qldb/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module QLDB + class Railtie < Rails::Railtie + initializer 'aws-sdk-qldb.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::QLDB + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-qldbsession/lib/aws-sdk-qldbsession/railtie.rb b/gems/aws-sdk-qldbsession/lib/aws-sdk-qldbsession/railtie.rb new file mode 100644 index 00000000000..131a425337d --- /dev/null +++ b/gems/aws-sdk-qldbsession/lib/aws-sdk-qldbsession/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module QLDBSession + class Railtie < Rails::Railtie + initializer 'aws-sdk-qldbsession.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::QLDBSession + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-quicksight/lib/aws-sdk-quicksight/railtie.rb b/gems/aws-sdk-quicksight/lib/aws-sdk-quicksight/railtie.rb new file mode 100644 index 00000000000..232a1cf320c --- /dev/null +++ b/gems/aws-sdk-quicksight/lib/aws-sdk-quicksight/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module QuickSight + class Railtie < Rails::Railtie + initializer 'aws-sdk-quicksight.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::QuickSight + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-ram/lib/aws-sdk-ram/railtie.rb b/gems/aws-sdk-ram/lib/aws-sdk-ram/railtie.rb new file mode 100644 index 00000000000..565b6ad3aff --- /dev/null +++ b/gems/aws-sdk-ram/lib/aws-sdk-ram/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module RAM + class Railtie < Rails::Railtie + initializer 'aws-sdk-ram.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::RAM + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-rds/lib/aws-sdk-rds/railtie.rb b/gems/aws-sdk-rds/lib/aws-sdk-rds/railtie.rb new file mode 100644 index 00000000000..8a955835662 --- /dev/null +++ b/gems/aws-sdk-rds/lib/aws-sdk-rds/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module RDS + class Railtie < Rails::Railtie + initializer 'aws-sdk-rds.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::RDS + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-rdsdataservice/lib/aws-sdk-rdsdataservice/railtie.rb b/gems/aws-sdk-rdsdataservice/lib/aws-sdk-rdsdataservice/railtie.rb new file mode 100644 index 00000000000..497d36ad4a1 --- /dev/null +++ b/gems/aws-sdk-rdsdataservice/lib/aws-sdk-rdsdataservice/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module RDSDataService + class Railtie < Rails::Railtie + initializer 'aws-sdk-rdsdataservice.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::RDSDataService + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-recyclebin/lib/aws-sdk-recyclebin/railtie.rb b/gems/aws-sdk-recyclebin/lib/aws-sdk-recyclebin/railtie.rb new file mode 100644 index 00000000000..03a7225e675 --- /dev/null +++ b/gems/aws-sdk-recyclebin/lib/aws-sdk-recyclebin/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module RecycleBin + class Railtie < Rails::Railtie + initializer 'aws-sdk-recyclebin.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::RecycleBin + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-redshift/lib/aws-sdk-redshift/railtie.rb b/gems/aws-sdk-redshift/lib/aws-sdk-redshift/railtie.rb new file mode 100644 index 00000000000..fd740f67a85 --- /dev/null +++ b/gems/aws-sdk-redshift/lib/aws-sdk-redshift/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module Redshift + class Railtie < Rails::Railtie + initializer 'aws-sdk-redshift.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::Redshift + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-redshiftdataapiservice/lib/aws-sdk-redshiftdataapiservice/railtie.rb b/gems/aws-sdk-redshiftdataapiservice/lib/aws-sdk-redshiftdataapiservice/railtie.rb new file mode 100644 index 00000000000..8f5c7f0f2a8 --- /dev/null +++ b/gems/aws-sdk-redshiftdataapiservice/lib/aws-sdk-redshiftdataapiservice/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module RedshiftDataAPIService + class Railtie < Rails::Railtie + initializer 'aws-sdk-redshiftdataapiservice.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::RedshiftDataAPIService + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-redshiftserverless/lib/aws-sdk-redshiftserverless/railtie.rb b/gems/aws-sdk-redshiftserverless/lib/aws-sdk-redshiftserverless/railtie.rb new file mode 100644 index 00000000000..c33fd9a012b --- /dev/null +++ b/gems/aws-sdk-redshiftserverless/lib/aws-sdk-redshiftserverless/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module RedshiftServerless + class Railtie < Rails::Railtie + initializer 'aws-sdk-redshiftserverless.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::RedshiftServerless + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-rekognition/lib/aws-sdk-rekognition/railtie.rb b/gems/aws-sdk-rekognition/lib/aws-sdk-rekognition/railtie.rb new file mode 100644 index 00000000000..0d09fb44bea --- /dev/null +++ b/gems/aws-sdk-rekognition/lib/aws-sdk-rekognition/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module Rekognition + class Railtie < Rails::Railtie + initializer 'aws-sdk-rekognition.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::Rekognition + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-repostspace/lib/aws-sdk-repostspace/railtie.rb b/gems/aws-sdk-repostspace/lib/aws-sdk-repostspace/railtie.rb new file mode 100644 index 00000000000..d6505cae270 --- /dev/null +++ b/gems/aws-sdk-repostspace/lib/aws-sdk-repostspace/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module Repostspace + class Railtie < Rails::Railtie + initializer 'aws-sdk-repostspace.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::Repostspace + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-resiliencehub/lib/aws-sdk-resiliencehub/railtie.rb b/gems/aws-sdk-resiliencehub/lib/aws-sdk-resiliencehub/railtie.rb new file mode 100644 index 00000000000..b472f8a4a29 --- /dev/null +++ b/gems/aws-sdk-resiliencehub/lib/aws-sdk-resiliencehub/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module ResilienceHub + class Railtie < Rails::Railtie + initializer 'aws-sdk-resiliencehub.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::ResilienceHub + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-resourceexplorer2/lib/aws-sdk-resourceexplorer2/railtie.rb b/gems/aws-sdk-resourceexplorer2/lib/aws-sdk-resourceexplorer2/railtie.rb new file mode 100644 index 00000000000..72d4655b2f5 --- /dev/null +++ b/gems/aws-sdk-resourceexplorer2/lib/aws-sdk-resourceexplorer2/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module ResourceExplorer2 + class Railtie < Rails::Railtie + initializer 'aws-sdk-resourceexplorer2.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::ResourceExplorer2 + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-resourcegroups/lib/aws-sdk-resourcegroups/railtie.rb b/gems/aws-sdk-resourcegroups/lib/aws-sdk-resourcegroups/railtie.rb new file mode 100644 index 00000000000..83748289408 --- /dev/null +++ b/gems/aws-sdk-resourcegroups/lib/aws-sdk-resourcegroups/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module ResourceGroups + class Railtie < Rails::Railtie + initializer 'aws-sdk-resourcegroups.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::ResourceGroups + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-resourcegroupstaggingapi/lib/aws-sdk-resourcegroupstaggingapi/railtie.rb b/gems/aws-sdk-resourcegroupstaggingapi/lib/aws-sdk-resourcegroupstaggingapi/railtie.rb new file mode 100644 index 00000000000..68b0b42d2b7 --- /dev/null +++ b/gems/aws-sdk-resourcegroupstaggingapi/lib/aws-sdk-resourcegroupstaggingapi/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module ResourceGroupsTaggingAPI + class Railtie < Rails::Railtie + initializer 'aws-sdk-resourcegroupstaggingapi.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::ResourceGroupsTaggingAPI + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-resources/lib/aws-sdk-resources/railtie.rb b/gems/aws-sdk-resources/lib/aws-sdk-resources/railtie.rb new file mode 100644 index 00000000000..f7e9a38d6ae --- /dev/null +++ b/gems/aws-sdk-resources/lib/aws-sdk-resources/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module Resources + class Railtie < Rails::Railtie + initializer 'aws-sdk-resources.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::Resources + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-robomaker/lib/aws-sdk-robomaker/railtie.rb b/gems/aws-sdk-robomaker/lib/aws-sdk-robomaker/railtie.rb new file mode 100644 index 00000000000..05d52bf4777 --- /dev/null +++ b/gems/aws-sdk-robomaker/lib/aws-sdk-robomaker/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module RoboMaker + class Railtie < Rails::Railtie + initializer 'aws-sdk-robomaker.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::RoboMaker + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-rolesanywhere/lib/aws-sdk-rolesanywhere/railtie.rb b/gems/aws-sdk-rolesanywhere/lib/aws-sdk-rolesanywhere/railtie.rb new file mode 100644 index 00000000000..4a41306f744 --- /dev/null +++ b/gems/aws-sdk-rolesanywhere/lib/aws-sdk-rolesanywhere/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module RolesAnywhere + class Railtie < Rails::Railtie + initializer 'aws-sdk-rolesanywhere.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::RolesAnywhere + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-route53/lib/aws-sdk-route53/railtie.rb b/gems/aws-sdk-route53/lib/aws-sdk-route53/railtie.rb new file mode 100644 index 00000000000..808b18bd6ab --- /dev/null +++ b/gems/aws-sdk-route53/lib/aws-sdk-route53/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module Route53 + class Railtie < Rails::Railtie + initializer 'aws-sdk-route53.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::Route53 + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-route53domains/lib/aws-sdk-route53domains/railtie.rb b/gems/aws-sdk-route53domains/lib/aws-sdk-route53domains/railtie.rb new file mode 100644 index 00000000000..1cc9046a389 --- /dev/null +++ b/gems/aws-sdk-route53domains/lib/aws-sdk-route53domains/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module Route53Domains + class Railtie < Rails::Railtie + initializer 'aws-sdk-route53domains.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::Route53Domains + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-route53profiles/lib/aws-sdk-route53profiles/railtie.rb b/gems/aws-sdk-route53profiles/lib/aws-sdk-route53profiles/railtie.rb new file mode 100644 index 00000000000..3e7b880e6cd --- /dev/null +++ b/gems/aws-sdk-route53profiles/lib/aws-sdk-route53profiles/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module Route53Profiles + class Railtie < Rails::Railtie + initializer 'aws-sdk-route53profiles.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::Route53Profiles + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-route53recoverycluster/lib/aws-sdk-route53recoverycluster/railtie.rb b/gems/aws-sdk-route53recoverycluster/lib/aws-sdk-route53recoverycluster/railtie.rb new file mode 100644 index 00000000000..b74ef993eb5 --- /dev/null +++ b/gems/aws-sdk-route53recoverycluster/lib/aws-sdk-route53recoverycluster/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module Route53RecoveryCluster + class Railtie < Rails::Railtie + initializer 'aws-sdk-route53recoverycluster.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::Route53RecoveryCluster + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-route53recoverycontrolconfig/lib/aws-sdk-route53recoverycontrolconfig/railtie.rb b/gems/aws-sdk-route53recoverycontrolconfig/lib/aws-sdk-route53recoverycontrolconfig/railtie.rb new file mode 100644 index 00000000000..baaf6215e8f --- /dev/null +++ b/gems/aws-sdk-route53recoverycontrolconfig/lib/aws-sdk-route53recoverycontrolconfig/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module Route53RecoveryControlConfig + class Railtie < Rails::Railtie + initializer 'aws-sdk-route53recoverycontrolconfig.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::Route53RecoveryControlConfig + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-route53recoveryreadiness/lib/aws-sdk-route53recoveryreadiness/railtie.rb b/gems/aws-sdk-route53recoveryreadiness/lib/aws-sdk-route53recoveryreadiness/railtie.rb new file mode 100644 index 00000000000..0c49abbd663 --- /dev/null +++ b/gems/aws-sdk-route53recoveryreadiness/lib/aws-sdk-route53recoveryreadiness/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module Route53RecoveryReadiness + class Railtie < Rails::Railtie + initializer 'aws-sdk-route53recoveryreadiness.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::Route53RecoveryReadiness + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-route53resolver/lib/aws-sdk-route53resolver/railtie.rb b/gems/aws-sdk-route53resolver/lib/aws-sdk-route53resolver/railtie.rb new file mode 100644 index 00000000000..de8764b921e --- /dev/null +++ b/gems/aws-sdk-route53resolver/lib/aws-sdk-route53resolver/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module Route53Resolver + class Railtie < Rails::Railtie + initializer 'aws-sdk-route53resolver.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::Route53Resolver + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-s3/lib/aws-sdk-s3/customizations.rb b/gems/aws-sdk-s3/lib/aws-sdk-s3/customizations.rb index b16dca35841..153b80844b2 100644 --- a/gems/aws-sdk-s3/lib/aws-sdk-s3/customizations.rb +++ b/gems/aws-sdk-s3/lib/aws-sdk-s3/customizations.rb @@ -1,44 +1,30 @@ # frozen_string_literal: true -# utility classes -require 'aws-sdk-s3/bucket_region_cache' -require 'aws-sdk-s3/encryption' -require 'aws-sdk-s3/encryption_v2' -require 'aws-sdk-s3/file_part' -require 'aws-sdk-s3/file_uploader' -require 'aws-sdk-s3/file_downloader' -require 'aws-sdk-s3/legacy_signer' -require 'aws-sdk-s3/multipart_file_uploader' -require 'aws-sdk-s3/multipart_stream_uploader' -require 'aws-sdk-s3/multipart_upload_error' -require 'aws-sdk-s3/object_copier' -require 'aws-sdk-s3/object_multipart_copier' -require 'aws-sdk-s3/presigned_post' -require 'aws-sdk-s3/presigner' +module Aws + module S3 + # utility classes + autoload :BucketRegionCache, 'aws-sdk-s3/bucket_region_cache' + autoload :Encryption, 'aws-sdk-s3/encryption' + autoload :EncryptionV2, 'aws-sdk-s3/encryption_v2' + autoload :FilePart, 'aws-sdk-s3/file_part' + autoload :FileUploader, 'aws-sdk-s3/file_uploader' + autoload :FileDownloader, 'aws-sdk-s3/file_downloader' + autoload :LegacySigner, 'aws-sdk-s3/legacy_signer' + autoload :MultipartFileUploader, 'aws-sdk-s3/multipart_file_uploader' + autoload :MultipartStreamUploader, 'aws-sdk-s3/multipart_stream_uploader' + autoload :MultipartUploadError, 'aws-sdk-s3/multipart_upload_error' + autoload :ObjectCopier, 'aws-sdk-s3/object_copier' + autoload :ObjectMultipartCopier, 'aws-sdk-s3/object_multipart_copier' + autoload :PresignedPost, 'aws-sdk-s3/presigned_post' + autoload :Presigner, 'aws-sdk-s3/presigner' -# s3 express session auth -require 'aws-sdk-s3/express_credentials' -require 'aws-sdk-s3/express_credentials_provider' + # s3 express session auth + autoload :ExpressCredentials, 'aws-sdk-s3/express_credentials' + autoload :ExpressCredentialsProvider, 'aws-sdk-s3/express_credentials_provider' -# s3 access grants auth -require 'aws-sdk-s3/access_grants_credentials' -require 'aws-sdk-s3/access_grants_credentials_provider' + # s3 access grants auth -# customizations to generated classes -require 'aws-sdk-s3/customizations/bucket' -require 'aws-sdk-s3/customizations/errors' -require 'aws-sdk-s3/customizations/object' -require 'aws-sdk-s3/customizations/object_summary' -require 'aws-sdk-s3/customizations/multipart_upload' -require 'aws-sdk-s3/customizations/types/list_object_versions_output' -require 'aws-sdk-s3/customizations/types/permanent_redirect' - -[ - Aws::S3::Object::Collection, - Aws::S3::ObjectSummary::Collection, - Aws::S3::ObjectVersion::Collection, -].each do |klass| - klass.send(:alias_method, :delete, :batch_delete!) - klass.extend Aws::Deprecations - klass.send(:deprecated, :delete, use: :batch_delete!) + autoload :AccessGrantsCredentials, 'aws-sdk-s3/access_grants_credentials' + autoload :AccessGrantsCredentialsProvider, 'aws-sdk-s3/access_grants_credentials_provider' + end end diff --git a/gems/aws-sdk-s3/lib/aws-sdk-s3/customizations/object.rb b/gems/aws-sdk-s3/lib/aws-sdk-s3/customizations/object.rb index fe1bb4b0d2d..2abe7e997fc 100644 --- a/gems/aws-sdk-s3/lib/aws-sdk-s3/customizations/object.rb +++ b/gems/aws-sdk-s3/lib/aws-sdk-s3/customizations/object.rb @@ -559,6 +559,12 @@ def download_file(destination, options = {}) end true end + + class Collection < Aws::Resources::Collection + alias_method :delete, :batch_delete! + extend Aws::Deprecations + deprecated :delete, use: :batch_delete! + end end end end diff --git a/gems/aws-sdk-s3/lib/aws-sdk-s3/customizations/object_summary.rb b/gems/aws-sdk-s3/lib/aws-sdk-s3/customizations/object_summary.rb index 94565f01cee..8c87ddd9c24 100644 --- a/gems/aws-sdk-s3/lib/aws-sdk-s3/customizations/object_summary.rb +++ b/gems/aws-sdk-s3/lib/aws-sdk-s3/customizations/object_summary.rb @@ -80,6 +80,11 @@ def download_file(destination, options = {}) object.download_file(destination, options) end + class Collection < Aws::Resources::Collection + alias_method :delete, :batch_delete! + extend Aws::Deprecations + deprecated :delete, use: :batch_delete! + end end end end diff --git a/gems/aws-sdk-s3/lib/aws-sdk-s3/customizations/object_version.rb b/gems/aws-sdk-s3/lib/aws-sdk-s3/customizations/object_version.rb new file mode 100644 index 00000000000..8c426be196d --- /dev/null +++ b/gems/aws-sdk-s3/lib/aws-sdk-s3/customizations/object_version.rb @@ -0,0 +1,13 @@ +# frozen_string_literal: true + +module Aws + module S3 + class ObjectVersion + class Collection < Aws::Resources::Collection + alias_method :delete, :batch_delete! + extend Aws::Deprecations + deprecated :delete, use: :batch_delete! + end + end + end +end diff --git a/gems/aws-sdk-s3/lib/aws-sdk-s3/railtie.rb b/gems/aws-sdk-s3/lib/aws-sdk-s3/railtie.rb new file mode 100644 index 00000000000..ec7a2f59074 --- /dev/null +++ b/gems/aws-sdk-s3/lib/aws-sdk-s3/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module S3 + class Railtie < Rails::Railtie + initializer 'aws-sdk-s3.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::S3 + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-s3control/lib/aws-sdk-s3control/railtie.rb b/gems/aws-sdk-s3control/lib/aws-sdk-s3control/railtie.rb new file mode 100644 index 00000000000..5e0bf5a7952 --- /dev/null +++ b/gems/aws-sdk-s3control/lib/aws-sdk-s3control/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module S3Control + class Railtie < Rails::Railtie + initializer 'aws-sdk-s3control.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::S3Control + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-s3outposts/lib/aws-sdk-s3outposts/railtie.rb b/gems/aws-sdk-s3outposts/lib/aws-sdk-s3outposts/railtie.rb new file mode 100644 index 00000000000..67454abffef --- /dev/null +++ b/gems/aws-sdk-s3outposts/lib/aws-sdk-s3outposts/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module S3Outposts + class Railtie < Rails::Railtie + initializer 'aws-sdk-s3outposts.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::S3Outposts + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-sagemaker/lib/aws-sdk-sagemaker/railtie.rb b/gems/aws-sdk-sagemaker/lib/aws-sdk-sagemaker/railtie.rb new file mode 100644 index 00000000000..da784e656f4 --- /dev/null +++ b/gems/aws-sdk-sagemaker/lib/aws-sdk-sagemaker/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module SageMaker + class Railtie < Rails::Railtie + initializer 'aws-sdk-sagemaker.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::SageMaker + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-sagemakeredgemanager/lib/aws-sdk-sagemakeredgemanager/railtie.rb b/gems/aws-sdk-sagemakeredgemanager/lib/aws-sdk-sagemakeredgemanager/railtie.rb new file mode 100644 index 00000000000..d57bdc12d94 --- /dev/null +++ b/gems/aws-sdk-sagemakeredgemanager/lib/aws-sdk-sagemakeredgemanager/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module SagemakerEdgeManager + class Railtie < Rails::Railtie + initializer 'aws-sdk-sagemakeredgemanager.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::SagemakerEdgeManager + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-sagemakerfeaturestoreruntime/lib/aws-sdk-sagemakerfeaturestoreruntime/railtie.rb b/gems/aws-sdk-sagemakerfeaturestoreruntime/lib/aws-sdk-sagemakerfeaturestoreruntime/railtie.rb new file mode 100644 index 00000000000..fce8b222d98 --- /dev/null +++ b/gems/aws-sdk-sagemakerfeaturestoreruntime/lib/aws-sdk-sagemakerfeaturestoreruntime/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module SageMakerFeatureStoreRuntime + class Railtie < Rails::Railtie + initializer 'aws-sdk-sagemakerfeaturestoreruntime.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::SageMakerFeatureStoreRuntime + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-sagemakergeospatial/lib/aws-sdk-sagemakergeospatial/railtie.rb b/gems/aws-sdk-sagemakergeospatial/lib/aws-sdk-sagemakergeospatial/railtie.rb new file mode 100644 index 00000000000..6ec136f65a0 --- /dev/null +++ b/gems/aws-sdk-sagemakergeospatial/lib/aws-sdk-sagemakergeospatial/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module SageMakerGeospatial + class Railtie < Rails::Railtie + initializer 'aws-sdk-sagemakergeospatial.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::SageMakerGeospatial + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-sagemakermetrics/lib/aws-sdk-sagemakermetrics/railtie.rb b/gems/aws-sdk-sagemakermetrics/lib/aws-sdk-sagemakermetrics/railtie.rb new file mode 100644 index 00000000000..112b2918438 --- /dev/null +++ b/gems/aws-sdk-sagemakermetrics/lib/aws-sdk-sagemakermetrics/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module SageMakerMetrics + class Railtie < Rails::Railtie + initializer 'aws-sdk-sagemakermetrics.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::SageMakerMetrics + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-sagemakerruntime/lib/aws-sdk-sagemakerruntime/railtie.rb b/gems/aws-sdk-sagemakerruntime/lib/aws-sdk-sagemakerruntime/railtie.rb new file mode 100644 index 00000000000..c5173df0b4d --- /dev/null +++ b/gems/aws-sdk-sagemakerruntime/lib/aws-sdk-sagemakerruntime/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module SageMakerRuntime + class Railtie < Rails::Railtie + initializer 'aws-sdk-sagemakerruntime.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::SageMakerRuntime + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-savingsplans/lib/aws-sdk-savingsplans/railtie.rb b/gems/aws-sdk-savingsplans/lib/aws-sdk-savingsplans/railtie.rb new file mode 100644 index 00000000000..513af1f7ef3 --- /dev/null +++ b/gems/aws-sdk-savingsplans/lib/aws-sdk-savingsplans/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module SavingsPlans + class Railtie < Rails::Railtie + initializer 'aws-sdk-savingsplans.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::SavingsPlans + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-scheduler/lib/aws-sdk-scheduler/railtie.rb b/gems/aws-sdk-scheduler/lib/aws-sdk-scheduler/railtie.rb new file mode 100644 index 00000000000..ea8ea432f3b --- /dev/null +++ b/gems/aws-sdk-scheduler/lib/aws-sdk-scheduler/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module Scheduler + class Railtie < Rails::Railtie + initializer 'aws-sdk-scheduler.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::Scheduler + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-schemas/lib/aws-sdk-schemas/railtie.rb b/gems/aws-sdk-schemas/lib/aws-sdk-schemas/railtie.rb new file mode 100644 index 00000000000..3d0cdd87c5f --- /dev/null +++ b/gems/aws-sdk-schemas/lib/aws-sdk-schemas/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module Schemas + class Railtie < Rails::Railtie + initializer 'aws-sdk-schemas.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::Schemas + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-secretsmanager/lib/aws-sdk-secretsmanager/railtie.rb b/gems/aws-sdk-secretsmanager/lib/aws-sdk-secretsmanager/railtie.rb new file mode 100644 index 00000000000..776c5309097 --- /dev/null +++ b/gems/aws-sdk-secretsmanager/lib/aws-sdk-secretsmanager/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module SecretsManager + class Railtie < Rails::Railtie + initializer 'aws-sdk-secretsmanager.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::SecretsManager + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-securityhub/lib/aws-sdk-securityhub/railtie.rb b/gems/aws-sdk-securityhub/lib/aws-sdk-securityhub/railtie.rb new file mode 100644 index 00000000000..bd45da0a5e5 --- /dev/null +++ b/gems/aws-sdk-securityhub/lib/aws-sdk-securityhub/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module SecurityHub + class Railtie < Rails::Railtie + initializer 'aws-sdk-securityhub.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::SecurityHub + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-securitylake/lib/aws-sdk-securitylake/railtie.rb b/gems/aws-sdk-securitylake/lib/aws-sdk-securitylake/railtie.rb new file mode 100644 index 00000000000..3fc650a33c9 --- /dev/null +++ b/gems/aws-sdk-securitylake/lib/aws-sdk-securitylake/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module SecurityLake + class Railtie < Rails::Railtie + initializer 'aws-sdk-securitylake.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::SecurityLake + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-serverlessapplicationrepository/lib/aws-sdk-serverlessapplicationrepository/railtie.rb b/gems/aws-sdk-serverlessapplicationrepository/lib/aws-sdk-serverlessapplicationrepository/railtie.rb new file mode 100644 index 00000000000..4df29f8c005 --- /dev/null +++ b/gems/aws-sdk-serverlessapplicationrepository/lib/aws-sdk-serverlessapplicationrepository/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module ServerlessApplicationRepository + class Railtie < Rails::Railtie + initializer 'aws-sdk-serverlessapplicationrepository.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::ServerlessApplicationRepository + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-servicecatalog/lib/aws-sdk-servicecatalog/railtie.rb b/gems/aws-sdk-servicecatalog/lib/aws-sdk-servicecatalog/railtie.rb new file mode 100644 index 00000000000..22dc0b8ff27 --- /dev/null +++ b/gems/aws-sdk-servicecatalog/lib/aws-sdk-servicecatalog/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module ServiceCatalog + class Railtie < Rails::Railtie + initializer 'aws-sdk-servicecatalog.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::ServiceCatalog + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-servicediscovery/lib/aws-sdk-servicediscovery/railtie.rb b/gems/aws-sdk-servicediscovery/lib/aws-sdk-servicediscovery/railtie.rb new file mode 100644 index 00000000000..34f0254cb75 --- /dev/null +++ b/gems/aws-sdk-servicediscovery/lib/aws-sdk-servicediscovery/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module ServiceDiscovery + class Railtie < Rails::Railtie + initializer 'aws-sdk-servicediscovery.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::ServiceDiscovery + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-servicequotas/lib/aws-sdk-servicequotas/railtie.rb b/gems/aws-sdk-servicequotas/lib/aws-sdk-servicequotas/railtie.rb new file mode 100644 index 00000000000..2a35e59a677 --- /dev/null +++ b/gems/aws-sdk-servicequotas/lib/aws-sdk-servicequotas/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module ServiceQuotas + class Railtie < Rails::Railtie + initializer 'aws-sdk-servicequotas.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::ServiceQuotas + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-ses/lib/aws-sdk-ses/railtie.rb b/gems/aws-sdk-ses/lib/aws-sdk-ses/railtie.rb new file mode 100644 index 00000000000..57c83756d51 --- /dev/null +++ b/gems/aws-sdk-ses/lib/aws-sdk-ses/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module SES + class Railtie < Rails::Railtie + initializer 'aws-sdk-ses.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::SES + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-sesv2/lib/aws-sdk-sesv2/railtie.rb b/gems/aws-sdk-sesv2/lib/aws-sdk-sesv2/railtie.rb new file mode 100644 index 00000000000..a585f1fb79b --- /dev/null +++ b/gems/aws-sdk-sesv2/lib/aws-sdk-sesv2/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module SESV2 + class Railtie < Rails::Railtie + initializer 'aws-sdk-sesv2.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::SESV2 + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-shield/lib/aws-sdk-shield/railtie.rb b/gems/aws-sdk-shield/lib/aws-sdk-shield/railtie.rb new file mode 100644 index 00000000000..7888dc35247 --- /dev/null +++ b/gems/aws-sdk-shield/lib/aws-sdk-shield/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module Shield + class Railtie < Rails::Railtie + initializer 'aws-sdk-shield.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::Shield + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-signer/lib/aws-sdk-signer/railtie.rb b/gems/aws-sdk-signer/lib/aws-sdk-signer/railtie.rb new file mode 100644 index 00000000000..815786124b9 --- /dev/null +++ b/gems/aws-sdk-signer/lib/aws-sdk-signer/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module Signer + class Railtie < Rails::Railtie + initializer 'aws-sdk-signer.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::Signer + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-simpledb/lib/aws-sdk-simpledb/railtie.rb b/gems/aws-sdk-simpledb/lib/aws-sdk-simpledb/railtie.rb new file mode 100644 index 00000000000..cf04cc6d0d8 --- /dev/null +++ b/gems/aws-sdk-simpledb/lib/aws-sdk-simpledb/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module SimpleDB + class Railtie < Rails::Railtie + initializer 'aws-sdk-simpledb.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::SimpleDB + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-simspaceweaver/lib/aws-sdk-simspaceweaver/railtie.rb b/gems/aws-sdk-simspaceweaver/lib/aws-sdk-simspaceweaver/railtie.rb new file mode 100644 index 00000000000..dad7751412b --- /dev/null +++ b/gems/aws-sdk-simspaceweaver/lib/aws-sdk-simspaceweaver/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module SimSpaceWeaver + class Railtie < Rails::Railtie + initializer 'aws-sdk-simspaceweaver.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::SimSpaceWeaver + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-sms/lib/aws-sdk-sms/railtie.rb b/gems/aws-sdk-sms/lib/aws-sdk-sms/railtie.rb new file mode 100644 index 00000000000..f335ba7ef17 --- /dev/null +++ b/gems/aws-sdk-sms/lib/aws-sdk-sms/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module SMS + class Railtie < Rails::Railtie + initializer 'aws-sdk-sms.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::SMS + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-snowball/lib/aws-sdk-snowball/railtie.rb b/gems/aws-sdk-snowball/lib/aws-sdk-snowball/railtie.rb new file mode 100644 index 00000000000..e8eab9eba89 --- /dev/null +++ b/gems/aws-sdk-snowball/lib/aws-sdk-snowball/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module Snowball + class Railtie < Rails::Railtie + initializer 'aws-sdk-snowball.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::Snowball + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-snowdevicemanagement/lib/aws-sdk-snowdevicemanagement/railtie.rb b/gems/aws-sdk-snowdevicemanagement/lib/aws-sdk-snowdevicemanagement/railtie.rb new file mode 100644 index 00000000000..662bd882b79 --- /dev/null +++ b/gems/aws-sdk-snowdevicemanagement/lib/aws-sdk-snowdevicemanagement/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module SnowDeviceManagement + class Railtie < Rails::Railtie + initializer 'aws-sdk-snowdevicemanagement.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::SnowDeviceManagement + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-sns/lib/aws-sdk-sns/customizations.rb b/gems/aws-sdk-sns/lib/aws-sdk-sns/customizations.rb index 6dcda5e2743..33fd5b70e52 100644 --- a/gems/aws-sdk-sns/lib/aws-sdk-sns/customizations.rb +++ b/gems/aws-sdk-sns/lib/aws-sdk-sns/customizations.rb @@ -1,4 +1,8 @@ # frozen_string_literal: true # utility classes -require 'aws-sdk-sns/message_verifier' +module Aws + module SNS + autoload :MessageVerifier, 'aws-sdk-sns/message_verifier' + end +end diff --git a/gems/aws-sdk-sns/lib/aws-sdk-sns/railtie.rb b/gems/aws-sdk-sns/lib/aws-sdk-sns/railtie.rb new file mode 100644 index 00000000000..ac8a4a7a11d --- /dev/null +++ b/gems/aws-sdk-sns/lib/aws-sdk-sns/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module SNS + class Railtie < Rails::Railtie + initializer 'aws-sdk-sns.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::SNS + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-sqs/lib/aws-sdk-sqs/customizations.rb b/gems/aws-sdk-sqs/lib/aws-sdk-sqs/customizations.rb index 190176d8cc1..2b4726b9435 100644 --- a/gems/aws-sdk-sqs/lib/aws-sdk-sqs/customizations.rb +++ b/gems/aws-sdk-sqs/lib/aws-sdk-sqs/customizations.rb @@ -1,4 +1,8 @@ # frozen_string_literal: true # utility classes -require 'aws-sdk-sqs/queue_poller' +module Aws + module SQS + autoload :QueuePoller, 'aws-sdk-sqs/queue_poller' + end +end diff --git a/gems/aws-sdk-sqs/lib/aws-sdk-sqs/railtie.rb b/gems/aws-sdk-sqs/lib/aws-sdk-sqs/railtie.rb new file mode 100644 index 00000000000..c8960126f16 --- /dev/null +++ b/gems/aws-sdk-sqs/lib/aws-sdk-sqs/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module SQS + class Railtie < Rails::Railtie + initializer 'aws-sdk-sqs.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::SQS + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-ssm/lib/aws-sdk-ssm/railtie.rb b/gems/aws-sdk-ssm/lib/aws-sdk-ssm/railtie.rb new file mode 100644 index 00000000000..cf7598c4751 --- /dev/null +++ b/gems/aws-sdk-ssm/lib/aws-sdk-ssm/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module SSM + class Railtie < Rails::Railtie + initializer 'aws-sdk-ssm.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::SSM + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-ssmcontacts/lib/aws-sdk-ssmcontacts/railtie.rb b/gems/aws-sdk-ssmcontacts/lib/aws-sdk-ssmcontacts/railtie.rb new file mode 100644 index 00000000000..b2d9a2b42f9 --- /dev/null +++ b/gems/aws-sdk-ssmcontacts/lib/aws-sdk-ssmcontacts/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module SSMContacts + class Railtie < Rails::Railtie + initializer 'aws-sdk-ssmcontacts.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::SSMContacts + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-ssmincidents/lib/aws-sdk-ssmincidents/railtie.rb b/gems/aws-sdk-ssmincidents/lib/aws-sdk-ssmincidents/railtie.rb new file mode 100644 index 00000000000..884a65bb0f9 --- /dev/null +++ b/gems/aws-sdk-ssmincidents/lib/aws-sdk-ssmincidents/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module SSMIncidents + class Railtie < Rails::Railtie + initializer 'aws-sdk-ssmincidents.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::SSMIncidents + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-ssmquicksetup/lib/aws-sdk-ssmquicksetup/railtie.rb b/gems/aws-sdk-ssmquicksetup/lib/aws-sdk-ssmquicksetup/railtie.rb new file mode 100644 index 00000000000..1301f3be029 --- /dev/null +++ b/gems/aws-sdk-ssmquicksetup/lib/aws-sdk-ssmquicksetup/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module SSMQuickSetup + class Railtie < Rails::Railtie + initializer 'aws-sdk-ssmquicksetup.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::SSMQuickSetup + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-ssmsap/lib/aws-sdk-ssmsap/railtie.rb b/gems/aws-sdk-ssmsap/lib/aws-sdk-ssmsap/railtie.rb new file mode 100644 index 00000000000..52797b85dd9 --- /dev/null +++ b/gems/aws-sdk-ssmsap/lib/aws-sdk-ssmsap/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module SsmSap + class Railtie < Rails::Railtie + initializer 'aws-sdk-ssmsap.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::SsmSap + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-sso/lib/aws-sdk-sso/railtie.rb b/gems/aws-sdk-sso/lib/aws-sdk-sso/railtie.rb new file mode 100644 index 00000000000..5ae3936505e --- /dev/null +++ b/gems/aws-sdk-sso/lib/aws-sdk-sso/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module SSO + class Railtie < Rails::Railtie + initializer 'aws-sdk-sso.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::SSO + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-ssoadmin/lib/aws-sdk-ssoadmin/railtie.rb b/gems/aws-sdk-ssoadmin/lib/aws-sdk-ssoadmin/railtie.rb new file mode 100644 index 00000000000..17e48ca74ba --- /dev/null +++ b/gems/aws-sdk-ssoadmin/lib/aws-sdk-ssoadmin/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module SSOAdmin + class Railtie < Rails::Railtie + initializer 'aws-sdk-ssoadmin.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::SSOAdmin + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-ssooidc/lib/aws-sdk-ssooidc/railtie.rb b/gems/aws-sdk-ssooidc/lib/aws-sdk-ssooidc/railtie.rb new file mode 100644 index 00000000000..6f177a39ac7 --- /dev/null +++ b/gems/aws-sdk-ssooidc/lib/aws-sdk-ssooidc/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module SSOIDC + class Railtie < Rails::Railtie + initializer 'aws-sdk-ssooidc.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::SSOIDC + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-states/lib/aws-sdk-states/railtie.rb b/gems/aws-sdk-states/lib/aws-sdk-states/railtie.rb new file mode 100644 index 00000000000..3862ad30bad --- /dev/null +++ b/gems/aws-sdk-states/lib/aws-sdk-states/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module States + class Railtie < Rails::Railtie + initializer 'aws-sdk-states.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::States + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-storagegateway/lib/aws-sdk-storagegateway/railtie.rb b/gems/aws-sdk-storagegateway/lib/aws-sdk-storagegateway/railtie.rb new file mode 100644 index 00000000000..23011cfedee --- /dev/null +++ b/gems/aws-sdk-storagegateway/lib/aws-sdk-storagegateway/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module StorageGateway + class Railtie < Rails::Railtie + initializer 'aws-sdk-storagegateway.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::StorageGateway + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-sts/lib/aws-sdk-sts/railtie.rb b/gems/aws-sdk-sts/lib/aws-sdk-sts/railtie.rb new file mode 100644 index 00000000000..74ef630af37 --- /dev/null +++ b/gems/aws-sdk-sts/lib/aws-sdk-sts/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module STS + class Railtie < Rails::Railtie + initializer 'aws-sdk-sts.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::STS + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-supplychain/lib/aws-sdk-supplychain/railtie.rb b/gems/aws-sdk-supplychain/lib/aws-sdk-supplychain/railtie.rb new file mode 100644 index 00000000000..b572a4f2e0f --- /dev/null +++ b/gems/aws-sdk-supplychain/lib/aws-sdk-supplychain/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module SupplyChain + class Railtie < Rails::Railtie + initializer 'aws-sdk-supplychain.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::SupplyChain + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-support/lib/aws-sdk-support/railtie.rb b/gems/aws-sdk-support/lib/aws-sdk-support/railtie.rb new file mode 100644 index 00000000000..34b85782daf --- /dev/null +++ b/gems/aws-sdk-support/lib/aws-sdk-support/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module Support + class Railtie < Rails::Railtie + initializer 'aws-sdk-support.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::Support + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-supportapp/lib/aws-sdk-supportapp/railtie.rb b/gems/aws-sdk-supportapp/lib/aws-sdk-supportapp/railtie.rb new file mode 100644 index 00000000000..d7758277a20 --- /dev/null +++ b/gems/aws-sdk-supportapp/lib/aws-sdk-supportapp/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module SupportApp + class Railtie < Rails::Railtie + initializer 'aws-sdk-supportapp.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::SupportApp + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-swf/lib/aws-sdk-swf/railtie.rb b/gems/aws-sdk-swf/lib/aws-sdk-swf/railtie.rb new file mode 100644 index 00000000000..e6e60dbc382 --- /dev/null +++ b/gems/aws-sdk-swf/lib/aws-sdk-swf/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module SWF + class Railtie < Rails::Railtie + initializer 'aws-sdk-swf.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::SWF + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-synthetics/lib/aws-sdk-synthetics/railtie.rb b/gems/aws-sdk-synthetics/lib/aws-sdk-synthetics/railtie.rb new file mode 100644 index 00000000000..101d0b8a7cb --- /dev/null +++ b/gems/aws-sdk-synthetics/lib/aws-sdk-synthetics/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module Synthetics + class Railtie < Rails::Railtie + initializer 'aws-sdk-synthetics.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::Synthetics + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-taxsettings/lib/aws-sdk-taxsettings/railtie.rb b/gems/aws-sdk-taxsettings/lib/aws-sdk-taxsettings/railtie.rb new file mode 100644 index 00000000000..2cd9f1eaa41 --- /dev/null +++ b/gems/aws-sdk-taxsettings/lib/aws-sdk-taxsettings/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module TaxSettings + class Railtie < Rails::Railtie + initializer 'aws-sdk-taxsettings.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::TaxSettings + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-textract/lib/aws-sdk-textract/railtie.rb b/gems/aws-sdk-textract/lib/aws-sdk-textract/railtie.rb new file mode 100644 index 00000000000..0c0afeabae8 --- /dev/null +++ b/gems/aws-sdk-textract/lib/aws-sdk-textract/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module Textract + class Railtie < Rails::Railtie + initializer 'aws-sdk-textract.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::Textract + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-timestreaminfluxdb/lib/aws-sdk-timestreaminfluxdb/railtie.rb b/gems/aws-sdk-timestreaminfluxdb/lib/aws-sdk-timestreaminfluxdb/railtie.rb new file mode 100644 index 00000000000..4c5f48514b3 --- /dev/null +++ b/gems/aws-sdk-timestreaminfluxdb/lib/aws-sdk-timestreaminfluxdb/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module TimestreamInfluxDB + class Railtie < Rails::Railtie + initializer 'aws-sdk-timestreaminfluxdb.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::TimestreamInfluxDB + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-timestreamquery/lib/aws-sdk-timestreamquery/railtie.rb b/gems/aws-sdk-timestreamquery/lib/aws-sdk-timestreamquery/railtie.rb new file mode 100644 index 00000000000..627958b0b04 --- /dev/null +++ b/gems/aws-sdk-timestreamquery/lib/aws-sdk-timestreamquery/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module TimestreamQuery + class Railtie < Rails::Railtie + initializer 'aws-sdk-timestreamquery.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::TimestreamQuery + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-timestreamwrite/lib/aws-sdk-timestreamwrite/railtie.rb b/gems/aws-sdk-timestreamwrite/lib/aws-sdk-timestreamwrite/railtie.rb new file mode 100644 index 00000000000..4ffec06a2eb --- /dev/null +++ b/gems/aws-sdk-timestreamwrite/lib/aws-sdk-timestreamwrite/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module TimestreamWrite + class Railtie < Rails::Railtie + initializer 'aws-sdk-timestreamwrite.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::TimestreamWrite + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-tnb/lib/aws-sdk-tnb/railtie.rb b/gems/aws-sdk-tnb/lib/aws-sdk-tnb/railtie.rb new file mode 100644 index 00000000000..2d9127979f2 --- /dev/null +++ b/gems/aws-sdk-tnb/lib/aws-sdk-tnb/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module Tnb + class Railtie < Rails::Railtie + initializer 'aws-sdk-tnb.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::Tnb + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-transcribeservice/lib/aws-sdk-transcribeservice/railtie.rb b/gems/aws-sdk-transcribeservice/lib/aws-sdk-transcribeservice/railtie.rb new file mode 100644 index 00000000000..b1f5f8aaf11 --- /dev/null +++ b/gems/aws-sdk-transcribeservice/lib/aws-sdk-transcribeservice/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module TranscribeService + class Railtie < Rails::Railtie + initializer 'aws-sdk-transcribeservice.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::TranscribeService + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-transcribestreamingservice/lib/aws-sdk-transcribestreamingservice/railtie.rb b/gems/aws-sdk-transcribestreamingservice/lib/aws-sdk-transcribestreamingservice/railtie.rb new file mode 100644 index 00000000000..547e2b5bc6e --- /dev/null +++ b/gems/aws-sdk-transcribestreamingservice/lib/aws-sdk-transcribestreamingservice/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module TranscribeStreamingService + class Railtie < Rails::Railtie + initializer 'aws-sdk-transcribestreamingservice.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::TranscribeStreamingService + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-transfer/lib/aws-sdk-transfer/railtie.rb b/gems/aws-sdk-transfer/lib/aws-sdk-transfer/railtie.rb new file mode 100644 index 00000000000..e36bb85ca45 --- /dev/null +++ b/gems/aws-sdk-transfer/lib/aws-sdk-transfer/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module Transfer + class Railtie < Rails::Railtie + initializer 'aws-sdk-transfer.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::Transfer + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-translate/lib/aws-sdk-translate/railtie.rb b/gems/aws-sdk-translate/lib/aws-sdk-translate/railtie.rb new file mode 100644 index 00000000000..2ecbc7e4aee --- /dev/null +++ b/gems/aws-sdk-translate/lib/aws-sdk-translate/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module Translate + class Railtie < Rails::Railtie + initializer 'aws-sdk-translate.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::Translate + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-translate/spec/translate_document_encoding_spec.rb b/gems/aws-sdk-translate/spec/translate_document_encoding_spec.rb index 6a2d7f2eebc..90aad8c6cb0 100644 --- a/gems/aws-sdk-translate/spec/translate_document_encoding_spec.rb +++ b/gems/aws-sdk-translate/spec/translate_document_encoding_spec.rb @@ -1,6 +1,7 @@ # frozen_string_literal: true require_relative 'spec_helper' +require_relative '../lib/aws-sdk-translate/plugins/translate_document_encoding' module Aws::Translate module Plugins diff --git a/gems/aws-sdk-trustedadvisor/lib/aws-sdk-trustedadvisor/railtie.rb b/gems/aws-sdk-trustedadvisor/lib/aws-sdk-trustedadvisor/railtie.rb new file mode 100644 index 00000000000..02acae6e325 --- /dev/null +++ b/gems/aws-sdk-trustedadvisor/lib/aws-sdk-trustedadvisor/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module TrustedAdvisor + class Railtie < Rails::Railtie + initializer 'aws-sdk-trustedadvisor.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::TrustedAdvisor + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-verifiedpermissions/lib/aws-sdk-verifiedpermissions/railtie.rb b/gems/aws-sdk-verifiedpermissions/lib/aws-sdk-verifiedpermissions/railtie.rb new file mode 100644 index 00000000000..41a3a9b2a14 --- /dev/null +++ b/gems/aws-sdk-verifiedpermissions/lib/aws-sdk-verifiedpermissions/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module VerifiedPermissions + class Railtie < Rails::Railtie + initializer 'aws-sdk-verifiedpermissions.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::VerifiedPermissions + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-voiceid/lib/aws-sdk-voiceid/railtie.rb b/gems/aws-sdk-voiceid/lib/aws-sdk-voiceid/railtie.rb new file mode 100644 index 00000000000..cf4778accf6 --- /dev/null +++ b/gems/aws-sdk-voiceid/lib/aws-sdk-voiceid/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module VoiceID + class Railtie < Rails::Railtie + initializer 'aws-sdk-voiceid.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::VoiceID + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-vpclattice/lib/aws-sdk-vpclattice/railtie.rb b/gems/aws-sdk-vpclattice/lib/aws-sdk-vpclattice/railtie.rb new file mode 100644 index 00000000000..9a7b7c08412 --- /dev/null +++ b/gems/aws-sdk-vpclattice/lib/aws-sdk-vpclattice/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module VPCLattice + class Railtie < Rails::Railtie + initializer 'aws-sdk-vpclattice.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::VPCLattice + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-waf/lib/aws-sdk-waf/railtie.rb b/gems/aws-sdk-waf/lib/aws-sdk-waf/railtie.rb new file mode 100644 index 00000000000..b8776c9915a --- /dev/null +++ b/gems/aws-sdk-waf/lib/aws-sdk-waf/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module WAF + class Railtie < Rails::Railtie + initializer 'aws-sdk-waf.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::WAF + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-wafregional/lib/aws-sdk-wafregional/railtie.rb b/gems/aws-sdk-wafregional/lib/aws-sdk-wafregional/railtie.rb new file mode 100644 index 00000000000..dd1a18d5403 --- /dev/null +++ b/gems/aws-sdk-wafregional/lib/aws-sdk-wafregional/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module WAFRegional + class Railtie < Rails::Railtie + initializer 'aws-sdk-wafregional.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::WAFRegional + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-wafv2/lib/aws-sdk-wafv2/railtie.rb b/gems/aws-sdk-wafv2/lib/aws-sdk-wafv2/railtie.rb new file mode 100644 index 00000000000..b6f040a148c --- /dev/null +++ b/gems/aws-sdk-wafv2/lib/aws-sdk-wafv2/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module WAFV2 + class Railtie < Rails::Railtie + initializer 'aws-sdk-wafv2.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::WAFV2 + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-wellarchitected/lib/aws-sdk-wellarchitected/railtie.rb b/gems/aws-sdk-wellarchitected/lib/aws-sdk-wellarchitected/railtie.rb new file mode 100644 index 00000000000..7474036d4d7 --- /dev/null +++ b/gems/aws-sdk-wellarchitected/lib/aws-sdk-wellarchitected/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module WellArchitected + class Railtie < Rails::Railtie + initializer 'aws-sdk-wellarchitected.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::WellArchitected + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-workdocs/lib/aws-sdk-workdocs/railtie.rb b/gems/aws-sdk-workdocs/lib/aws-sdk-workdocs/railtie.rb new file mode 100644 index 00000000000..f279423945d --- /dev/null +++ b/gems/aws-sdk-workdocs/lib/aws-sdk-workdocs/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module WorkDocs + class Railtie < Rails::Railtie + initializer 'aws-sdk-workdocs.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::WorkDocs + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-worklink/lib/aws-sdk-worklink/railtie.rb b/gems/aws-sdk-worklink/lib/aws-sdk-worklink/railtie.rb new file mode 100644 index 00000000000..78f6ce8c619 --- /dev/null +++ b/gems/aws-sdk-worklink/lib/aws-sdk-worklink/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module WorkLink + class Railtie < Rails::Railtie + initializer 'aws-sdk-worklink.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::WorkLink + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-workmail/lib/aws-sdk-workmail/railtie.rb b/gems/aws-sdk-workmail/lib/aws-sdk-workmail/railtie.rb new file mode 100644 index 00000000000..af3c304bf77 --- /dev/null +++ b/gems/aws-sdk-workmail/lib/aws-sdk-workmail/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module WorkMail + class Railtie < Rails::Railtie + initializer 'aws-sdk-workmail.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::WorkMail + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-workmailmessageflow/lib/aws-sdk-workmailmessageflow/railtie.rb b/gems/aws-sdk-workmailmessageflow/lib/aws-sdk-workmailmessageflow/railtie.rb new file mode 100644 index 00000000000..65f42637d63 --- /dev/null +++ b/gems/aws-sdk-workmailmessageflow/lib/aws-sdk-workmailmessageflow/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module WorkMailMessageFlow + class Railtie < Rails::Railtie + initializer 'aws-sdk-workmailmessageflow.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::WorkMailMessageFlow + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-workspaces/lib/aws-sdk-workspaces/railtie.rb b/gems/aws-sdk-workspaces/lib/aws-sdk-workspaces/railtie.rb new file mode 100644 index 00000000000..147e92337da --- /dev/null +++ b/gems/aws-sdk-workspaces/lib/aws-sdk-workspaces/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module WorkSpaces + class Railtie < Rails::Railtie + initializer 'aws-sdk-workspaces.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::WorkSpaces + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-workspacesthinclient/lib/aws-sdk-workspacesthinclient/railtie.rb b/gems/aws-sdk-workspacesthinclient/lib/aws-sdk-workspacesthinclient/railtie.rb new file mode 100644 index 00000000000..7c30164f16e --- /dev/null +++ b/gems/aws-sdk-workspacesthinclient/lib/aws-sdk-workspacesthinclient/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module WorkSpacesThinClient + class Railtie < Rails::Railtie + initializer 'aws-sdk-workspacesthinclient.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::WorkSpacesThinClient + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-workspacesweb/lib/aws-sdk-workspacesweb/railtie.rb b/gems/aws-sdk-workspacesweb/lib/aws-sdk-workspacesweb/railtie.rb new file mode 100644 index 00000000000..63cf9a115dd --- /dev/null +++ b/gems/aws-sdk-workspacesweb/lib/aws-sdk-workspacesweb/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module WorkSpacesWeb + class Railtie < Rails::Railtie + initializer 'aws-sdk-workspacesweb.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::WorkSpacesWeb + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk-xray/lib/aws-sdk-xray/railtie.rb b/gems/aws-sdk-xray/lib/aws-sdk-xray/railtie.rb new file mode 100644 index 00000000000..3f7964454f9 --- /dev/null +++ b/gems/aws-sdk-xray/lib/aws-sdk-xray/railtie.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Aws + module XRay + class Railtie < Rails::Railtie + initializer 'aws-sdk-xray.eager_load' do + config.before_eager_load do + config.eager_load_namespaces << Aws::XRay + end + end + end + + def self.eager_load! + constants.each do |constant| + const_get(constant) + end + end + end +end diff --git a/gems/aws-sdk/CHANGELOG.md b/gems/aws-sdk/CHANGELOG.md index 6b6b848e95f..64a0d60a838 100644 --- a/gems/aws-sdk/CHANGELOG.md +++ b/gems/aws-sdk/CHANGELOG.md @@ -1,5 +1,6 @@ Unreleased Changes ------------------ +* Feature - Use autoloading at the service level to load service clients and resources. 3.2.0 (2023-11-22) ------------------