class Elb::Settings

Public Class Methods

br_path() click to toggle source
# File lib/elb/settings.rb, line 16
def self.br_path
  ENV['BR_PATH'] || "#{ENV['HOME']}/.br"
end
setup_br_path() click to toggle source
# File lib/elb/settings.rb, line 20
def self.setup_br_path
  FileUtils.mkdir(br_path) unless File.exist?(br_path)
end

Public Instance Methods

aws_path() click to toggle source
# 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() click to toggle source
# File lib/elb/settings.rb, line 12
def br_path
  self.class.br_path
end