Sha256: 0fbf2bb9e82f7ef1170653c30c76675ab4b3fbae5e2d15a224cd36fb71a05d04

Contents?: true

Size: 529 Bytes

Versions: 11

Compression:

Stored size: 529 Bytes

Contents

require "zeitwerk"

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

    class << self
      def setup
        loader = Zeitwerk::Loader.new
        loader.inflector = Inflector.new
        loader.push_dir(File.dirname(__dir__)) # lib
        loader.ignore("#{File.dirname(__dir__)}/aws-mfa-secure.rb")
        loader.setup
      end
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
aws-mfa-secure-0.3.8 lib/aws_mfa_secure/autoloader.rb
aws-mfa-secure-0.3.7 lib/aws_mfa_secure/autoloader.rb
aws-mfa-secure-0.3.6 lib/aws_mfa_secure/autoloader.rb
aws-mfa-secure-0.3.5 lib/aws_mfa_secure/autoloader.rb
aws-mfa-secure-0.3.4 lib/aws_mfa_secure/autoloader.rb
aws-mfa-secure-0.3.3 lib/aws_mfa_secure/autoloader.rb
aws-mfa-secure-0.3.2 lib/aws_mfa_secure/autoloader.rb
aws-mfa-secure-0.3.1 lib/aws_mfa_secure/autoloader.rb
aws-mfa-secure-0.3.0 lib/aws_mfa_secure/autoloader.rb
aws-mfa-secure-0.2.0 lib/aws_mfa_secure/autoloader.rb
aws-mfa-secure-0.1.0 lib/aws_mfa_secure/autoloader.rb