Sha256: ca99334d3bd4de6a52c9903f45e825de4816e008571864e6daacefcee1465c09

Contents?: true

Size: 534 Bytes

Versions: 6

Compression:

Stored size: 534 Bytes

Contents

require 'memoizable'
require 'yamload'

module PansophyAuthenticator
  module Local
    class BuildLoader
      include Memoizable

      def call
        Yamload::Loader.new(filename, dirname)
      end

      private

      def pathname
        Pathname.new(configuration.file_path)
      end
      memoize :pathname

      def dirname
        pathname.dirname
      end

      def filename
        pathname.basename('.yml')
      end

      def configuration
        PansophyAuthenticator.configuration
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
pansophy_authenticator-0.4.3 lib/pansophy_authenticator/local/build_loader.rb
pansophy_authenticator-0.4.2 lib/pansophy_authenticator/local/build_loader.rb
pansophy_authenticator-0.4.1 lib/pansophy_authenticator/local/build_loader.rb
pansophy_authenticator-0.4.0 lib/pansophy_authenticator/local/build_loader.rb
pansophy_authenticator-0.3.0 lib/pansophy_authenticator/local/build_loader.rb
pansophy_authenticator-0.2.0 lib/pansophy_authenticator/local/build_loader.rb