Class: FentonShell::Key
- Inherits:
-
Object
- Object
- FentonShell::Key
- Defined in:
- lib/fenton_shell/key.rb
Overview
Provides SSH Key generation on the local client
Instance Attribute Summary collapse
-
#message ⇒ String
Success or failure message and why.
Instance Method Summary collapse
-
#create(options) ⇒ String
Creates a new key on the local client.
Instance Attribute Details
#message ⇒ String
Returns success or failure message and why.
6 7 8 |
# File 'lib/fenton_shell/key.rb', line 6 def @message end |
Instance Method Details
#create(options) ⇒ String
Creates a new key on the local client
13 14 15 16 17 18 19 20 21 22 23 |
# File 'lib/fenton_shell/key.rb', line 13 def create() status, body = key_create() if status ('Key': ['created!']) true else (body) false end end |