Sha256: 388fef5a98411a54b059e7cfc9b67681bb2f38b28d5004cd4e5eef36c5ae756d

Contents?: true

Size: 503 Bytes

Versions: 16

Compression:

Stored size: 503 Bytes

Contents

require "zeitwerk"

module TerraspacePluginAws
  class Autoloader
    class Inflector < Zeitwerk::Inflector
      def camelize(basename, _abspath)
        map = { cli: "CLI", ssm: "SSM", version: "VERSION" }
        map[basename.to_sym] || super
      end
    end

    class << self
      def setup
        loader = Zeitwerk::Loader.new
        loader.inflector = Inflector.new
        lib = File.expand_path("../", __dir__)
        loader.push_dir(lib)
        loader.setup
      end
    end
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
terraspace_plugin_aws-0.6.1 lib/terraspace_plugin_aws/autoloader.rb
terraspace_plugin_aws-0.6.0 lib/terraspace_plugin_aws/autoloader.rb
terraspace_plugin_aws-0.5.1 lib/terraspace_plugin_aws/autoloader.rb
terraspace_plugin_aws-0.5.0 lib/terraspace_plugin_aws/autoloader.rb
terraspace_plugin_aws-0.4.2 lib/terraspace_plugin_aws/autoloader.rb
terraspace_plugin_aws-0.4.1 lib/terraspace_plugin_aws/autoloader.rb
terraspace_plugin_aws-0.4.0 lib/terraspace_plugin_aws/autoloader.rb
terraspace_plugin_aws-0.3.8 lib/terraspace_plugin_aws/autoloader.rb
terraspace_plugin_aws-0.3.7 lib/terraspace_plugin_aws/autoloader.rb
terraspace_plugin_aws-0.3.6 lib/terraspace_plugin_aws/autoloader.rb
terraspace_plugin_aws-0.3.5 lib/terraspace_plugin_aws/autoloader.rb
terraspace_plugin_aws-0.3.4 lib/terraspace_plugin_aws/autoloader.rb
terraspace_plugin_aws-0.3.3 lib/terraspace_plugin_aws/autoloader.rb
terraspace_plugin_aws-0.3.2 lib/terraspace_plugin_aws/autoloader.rb
terraspace_plugin_aws-0.3.1 lib/terraspace_plugin_aws/autoloader.rb
terraspace_plugin_aws-0.3.0 lib/terraspace_plugin_aws/autoloader.rb