Class: FentonShell::Certificate
- Inherits:
-
Object
- Object
- FentonShell::Certificate
- Defined in:
- lib/fenton_shell/certificate.rb
Overview
Interfaces with the certificate api on fenton server
Instance Attribute Summary collapse
-
#message ⇒ String
Success or failure message and why.
Instance Method Summary collapse
-
#create(global_options, options) ⇒ String
Creates a new certificate on fenton server by sending a post request with json from the command line to create the certificate.
Instance Attribute Details
#message ⇒ String
Returns success or failure message and why.
6 7 8 |
# File 'lib/fenton_shell/certificate.rb', line 6 def @message end |
Instance Method Details
#create(global_options, options) ⇒ String
Creates a new certificate on fenton server by sending a post request with json from the command line to create the certificate
14 15 16 17 18 19 20 21 22 23 24 |
# File 'lib/fenton_shell/certificate.rb', line 14 def create(, ) status, body = certificate_create(, ) if status == 201 ('Certificate': ['created!']) true else (body) false end end |