Class: MCollective::Signer::Base
- Inherits:
-
Object
- Object
- MCollective::Signer::Base
- Defined in:
- lib/mcollective/signer/base.rb
Direct Known Subclasses
Class Method Summary collapse
-
.inherited(klass) ⇒ Object
Register plugins that inherits base.
Instance Method Summary collapse
-
#initialize ⇒ Base
constructor
A new instance of Base.
-
#sign_secure_request!(secure_request) ⇒ Object
Signs a secure request.
Constructor Details
Class Method Details
.inherited(klass) ⇒ Object
Register plugins that inherits base
5 6 7 8 |
# File 'lib/mcollective/signer/base.rb', line 5 def self.inherited(klass) PluginManager << {:type => "choria_signer_plugin", :class => klass.to_s} super end |
Instance Method Details
#sign_secure_request!(secure_request) ⇒ Object
Signs a secure request
Generally for local mode this would just use the users own certificate but if you have a remote signer this might use a token to speak to a remote API, by default Choria supports a standard web service for remote signatures
23 24 25 |
# File 'lib/mcollective/signer/base.rb', line 23 def sign_secure_request!(secure_request) raise(NoMethodError, "undefined method `sign_secure_request!' for %s" % inspect) end |