Sha256: a69f89d7538ce1ff74d52ad08b3b789155be3f584a6a91b391aa83b0c2b1cb30

Contents?: true

Size: 226 Bytes

Versions: 5

Compression:

Stored size: 226 Bytes

Contents

module SSO
  METHODS = [Apache, Signo]

  def self.get_available(controller)
    all_methods = all.map { |method| method.new(controller) }
    all_methods.select(&:available?).first
  end

  def self.all
    METHODS
  end

end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
foreman_discovery-1.0.0 test/foreman_app/lib/sso.rb
foreman_discovery-1.0.0.rc4 test/foreman_app/lib/sso.rb
foreman_discovery-1.0.0.rc3 test/foreman_app/lib/sso.rb
foreman_discovery-1.0.0.rc2 test/foreman_app/lib/sso.rb
foreman_discovery-1.0.0.rc1 test/foreman_app/lib/sso.rb