Class: Puppet::Network::AuthConfig
- Defined in:
- lib/puppet/network/authconfig.rb
Constant Summary collapse
- @@authprovider_class =
nil
Class Method Summary collapse
Instance Method Summary collapse
- #check_authorization(method, path, params) ⇒ Object
-
#initialize(rights = nil) ⇒ AuthConfig
constructor
A new instance of AuthConfig.
Constructor Details
#initialize(rights = nil) ⇒ AuthConfig
Returns a new instance of AuthConfig.
104 105 106 |
# File 'lib/puppet/network/authconfig.rb', line 104 def initialize(rights=nil) @authprovider = self.class.authprovider_class.new(rights) end |
Class Method Details
.authprovider_class ⇒ Object
100 101 102 |
# File 'lib/puppet/network/authconfig.rb', line 100 def self.authprovider_class @@authprovider_class || Puppet::Network::DefaultAuthProvider end |
.authprovider_class=(klass) ⇒ Object
96 97 98 |
# File 'lib/puppet/network/authconfig.rb', line 96 def self.authprovider_class=(klass) @@authprovider_class = klass end |
Instance Method Details
#check_authorization(method, path, params) ⇒ Object
108 109 110 |
# File 'lib/puppet/network/authconfig.rb', line 108 def (method, path, params) @authprovider.(method, path, params) end |