Class: KickstartKey
- Inherits:
-
Object
- Object
- KickstartKey
- Defined in:
- lib/satops/operator.rb
Overview
GPG/SSL Keys
Instance Attribute Summary collapse
-
#description ⇒ Object
readonly
Returns the value of attribute description.
Instance Method Summary collapse
- #create(sat) ⇒ Object
- #delete(sat) ⇒ Object
-
#initialize(key) ⇒ KickstartKey
constructor
A new instance of KickstartKey.
- #update(sat) ⇒ Object
Constructor Details
#initialize(key) ⇒ KickstartKey
Returns a new instance of KickstartKey.
713 714 715 716 717 |
# File 'lib/satops/operator.rb', line 713 def initialize(key) @description=key['description'] @type=key['type'] @content=key['content'] end |
Instance Attribute Details
#description ⇒ Object (readonly)
Returns the value of attribute description.
711 712 713 |
# File 'lib/satops/operator.rb', line 711 def description @description end |
Instance Method Details
#create(sat) ⇒ Object
723 724 725 |
# File 'lib/satops/operator.rb', line 723 def create(sat) sat.kickstartKeys.create(@description, @type, @content) end |
#delete(sat) ⇒ Object
719 720 721 |
# File 'lib/satops/operator.rb', line 719 def delete(sat) sat.kickstartKeys.delete(@description) end |
#update(sat) ⇒ Object
727 728 729 |
# File 'lib/satops/operator.rb', line 727 def update(sat) sat.kickstartKeys.update(@description, @type, @content) end |