Sha256: e2349ee84a2a4916c28047717cf8264ac72b073296d11f010397c34d210a8000

Contents?: true

Size: 482 Bytes

Versions: 1

Compression:

Stored size: 482 Bytes

Contents

module PansophyAuthenticator
  module Configuration
    class Local < Base
      def errors
        errors = super
        return errors + ['File path is not defined'] unless file_path?
        return errors + ["#{@file_path} does not exist"] unless file_exist?
        errors
      end

      def local?
        true
      end

      private

      def file_path?
        !@file_path.nil?
      end

      def file_exist?
        File.exist? @file_path
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
pansophy_authenticator-0.5.0 lib/pansophy_authenticator/configuration/local.rb