Class: VoxConfig

Inherits:
Object
  • Object
show all
Defined in:
lib/chef/knife/voxconfig.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(path) ⇒ VoxConfig

Returns a new instance of VoxConfig.



5
6
7
8
9
10
11
12
13
14
15
# File 'lib/chef/knife/voxconfig.rb', line 5

def initialize(path)
  file_name=".deployer"

  Pathname.new(path).ascend do |dir|
    config_file = dir + file_name
    if dir.children.include?(config_file)
      merge_config(YAML::load_file(config_file))
    end
  end

end

Instance Attribute Details

#aws_keyObject (readonly)

Returns the value of attribute aws_key.



3
4
5
# File 'lib/chef/knife/voxconfig.rb', line 3

def aws_key
  @aws_key
end

#aws_secretObject (readonly)

Returns the value of attribute aws_secret.



3
4
5
# File 'lib/chef/knife/voxconfig.rb', line 3

def aws_secret
  @aws_secret
end

#bucket_nameObject (readonly)

Returns the value of attribute bucket_name.



3
4
5
# File 'lib/chef/knife/voxconfig.rb', line 3

def bucket_name
  @bucket_name
end

#project_nameObject (readonly)

Returns the value of attribute project_name.



3
4
5
# File 'lib/chef/knife/voxconfig.rb', line 3

def project_name
  @project_name
end