Class: K8y::REST::Auth::Providers::Factory
- Inherits:
-
Object
- Object
- K8y::REST::Auth::Providers::Factory
- Defined in:
- lib/k8y/rest/auth/providers/factory.rb
Constant Summary collapse
- UnnamedProviderError =
Class.new(Error)
Instance Method Summary collapse
Instance Method Details
#from_auth_provider(provider) ⇒ Object
13 14 15 16 17 18 19 20 |
# File 'lib/k8y/rest/auth/providers/factory.rb', line 13 def from_auth_provider(provider) case provider.name when "gcp" GCP::Factory.new.from_auth_provider(provider) when nil raise UnnamedProviderError end end |