Sha256: 53b9e15deb6baef58901c0e69c6f005855cdc4c6a4da7a82ec40c5c9801fb507

Contents?: true

Size: 520 Bytes

Versions: 1

Compression:

Stored size: 520 Bytes

Contents

require "zeitwerk"

module TerraspaceVcsAzure
  class Autoloader
    class Inflector < Zeitwerk::Inflector
      def camelize(basename, _abspath)
        map = { 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.log! if ENV["TERRASPACE_VCS_AZURE_AUTOLOAD_LOG"]
        loader.setup
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
terraspace_vcs_azure-0.0.1.beta lib/terraspace_vcs_azure/autoloader.rb