Class: Elb::Settings
- Inherits:
-
Object
- Object
- Elb::Settings
- Defined in:
- lib/elb/settings.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.br_path ⇒ Object
16 17 18 |
# File 'lib/elb/settings.rb', line 16 def self.br_path ENV['BR_PATH'] || "#{ENV['HOME']}/.br" end |
.setup_br_path ⇒ Object
20 21 22 |
# File 'lib/elb/settings.rb', line 20 def self.setup_br_path FileUtils.mkdir(br_path) unless File.exist?(br_path) end |
Instance Method Details
#aws_path ⇒ Object
6 7 8 9 10 |
# File 'lib/elb/settings.rb', line 6 def aws_path path = ENV['TEST'] ? "spec/fixtures/aws.yml" : "#{br_path}/aws.yml" path = ENV['AWS'] if ENV['AWS'] path end |
#br_path ⇒ Object
12 13 14 |
# File 'lib/elb/settings.rb', line 12 def br_path self.class.br_path end |