Class: Elb::Settings

Inherits:
Object
  • Object
show all
Defined in:
lib/elb/settings.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.br_pathObject



16
17
18
# File 'lib/elb/settings.rb', line 16

def self.br_path
  ENV['BR_PATH'] || "#{ENV['HOME']}/.br"
end

.setup_br_pathObject



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_pathObject



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_pathObject



12
13
14
# File 'lib/elb/settings.rb', line 12

def br_path
  self.class.br_path
end