Class: Spaux::Chef::Key

Inherits:
Object
  • Object
show all
Defined in:
lib/spaux/chef/key.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#configObject

Returns the value of attribute config.



9
10
11
# File 'lib/spaux/chef/key.rb', line 9

def config
  @config
end

#raw_keyObject

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_dirObject

Returns the value of attribute work_dir.



7
8
9
# File 'lib/spaux/chef/key.rb', line 7

def work_dir
  @work_dir
end