Class: Spaux::Chef::Key
- Inherits:
-
Object
- Object
- Spaux::Chef::Key
- Defined in:
- lib/spaux/chef/key.rb
Instance Attribute Summary collapse
-
#config ⇒ Object
Returns the value of attribute config.
-
#raw_key ⇒ Object
Returns the value of attribute raw_key.
-
#work_dir ⇒ Object
Returns the value of attribute work_dir.
Instance Method Summary collapse
-
#initialize(config = {}) ⇒ Key
constructor
A new instance of Key.
Constructor Details
#initialize(config = {}) ⇒ Key
Returns a new instance of Key.
11 12 13 14 15 |
# File 'lib/spaux/chef/key.rb', line 11 def initialize(config={}) @work_dir = ::File.join(ENV['PWD'], 'current') @config = config.merge(default_spaux_config) @raw_key ||= get_raw_key end |
Instance Attribute Details
#config ⇒ Object
Returns the value of attribute config.
9 10 11 |
# File 'lib/spaux/chef/key.rb', line 9 def config @config end |
#raw_key ⇒ Object
Returns the value of attribute raw_key.
8 9 10 |
# File 'lib/spaux/chef/key.rb', line 8 def raw_key @raw_key end |
#work_dir ⇒ Object
Returns the value of attribute work_dir.
7 8 9 |
# File 'lib/spaux/chef/key.rb', line 7 def work_dir @work_dir end |