Class: VoxeoLabs::Config

Inherits:
Object
  • Object
show all
Defined in:
lib/labs-deployer/config.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(path) ⇒ Config

Returns a new instance of Config.



8
9
10
11
12
13
14
15
16
17
18
# File 'lib/labs-deployer/config.rb', line 8

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.



6
7
8
# File 'lib/labs-deployer/config.rb', line 6

def aws_key
  @aws_key
end

#aws_secretObject (readonly)

Returns the value of attribute aws_secret.



6
7
8
# File 'lib/labs-deployer/config.rb', line 6

def aws_secret
  @aws_secret
end

#bucket_nameObject (readonly)

Returns the value of attribute bucket_name.



6
7
8
# File 'lib/labs-deployer/config.rb', line 6

def bucket_name
  @bucket_name
end

#project_nameObject (readonly)

Returns the value of attribute project_name.



6
7
8
# File 'lib/labs-deployer/config.rb', line 6

def project_name
  @project_name
end