Class: VoxeoLabs::Config
- Inherits:
-
Object
- Object
- VoxeoLabs::Config
- Defined in:
- lib/labs-deployer/config.rb
Instance Attribute Summary collapse
-
#aws_key ⇒ Object
readonly
Returns the value of attribute aws_key.
-
#aws_secret ⇒ Object
readonly
Returns the value of attribute aws_secret.
-
#bucket_name ⇒ Object
readonly
Returns the value of attribute bucket_name.
-
#project_name ⇒ Object
readonly
Returns the value of attribute project_name.
Instance Method Summary collapse
-
#initialize(path) ⇒ Config
constructor
A new instance of Config.
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_key ⇒ Object (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_secret ⇒ Object (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_name ⇒ Object (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_name ⇒ Object (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 |