class Pfm::Settings
def initialize(expand = false)
def initialize(expand = false) @run_dir = Dir.pwd @config_directory = config_dir @expand = expand @settings = {} # Required @settings['AWS_REGION'] = Setting.new(ENV['AWS_REGION'], true) @settings['RUBOCOP_RULES_FILE'] = Setting.new('.rubocop.yml', true) @settings['FOODCRITIC_RULES_FILE'] = Setting.new('.foodcritic', true) @settings['BUILD_BASE_DIR'] = Setting.new('builds', true) @settings['INF_BASE_DIR'] = Setting.new('inf', true) @settings['PACKER_VERSION'] = Setting.new(::Packer::Binary.config.version, true) @settings['TERRAFORM_VERSION'] = Setting.new(::Terraform::Binary.config.version, true) # Optional Defaults @settings['PUBLISH_BUCKET'] = Setting.new('') @settings['PUBLISH_PREFIX'] = Setting.new('') load_config end