Class: ClusterChef::ChefClientKey
- Inherits:
-
PrivateKey
- Object
- DslObject
- PrivateKey
- ClusterChef::ChefClientKey
- Defined in:
- lib/cluster_chef/private_key.rb
Instance Attribute Summary
Attributes inherited from PrivateKey
Instance Method Summary collapse
Methods inherited from PrivateKey
#body=, create!, #filename, #initialize, #load, #save, #to_s
Methods inherited from DslObject
#configure, #die, #dump, has_keys, #initialize, #reverse_merge!, #safely, #set, #step, #to_hash, #to_mash, #to_s, #ui, ui
Constructor Details
This class inherits a constructor from ClusterChef::PrivateKey
Instance Method Details
#body ⇒ Object
62 63 64 65 66 67 68 69 70 |
# File 'lib/cluster_chef/private_key.rb', line 62 def body return @body if @body if proxy && proxy.private_key && (not proxy.private_key.empty?) @body = proxy.private_key else load end @body end |
#key_dir ⇒ Object
72 73 74 |
# File 'lib/cluster_chef/private_key.rb', line 72 def key_dir Chef::Config.client_key_dir || '/tmp/client_keys' end |