Class: Dean::ConfigurationHelper

Inherits:
Object
  • Object
show all
Defined in:
lib/dean/configuration_helper.rb

Instance Method Summary collapse

Instance Method Details

#all_environmentsObject



5
6
7
8
9
10
11
12
# File 'lib/dean/configuration_helper.rb', line 5

def all_environments
  raw_environments = symbolize_keys YAML.load_file Dir.pwd + '/.dean.yml'
  environments = []
  raw_environments[:environments].each do |environment|
    environments.push symbolize_keys environment
  end
  return environments
end

#build_settings_for_environment(environment) ⇒ Object



14
15
16
# File 'lib/dean/configuration_helper.rb', line 14

def build_settings_for_environment(environment)
  symbolize_keys environment[:build_settings]
end

#s3_settings_for_environment(environment) ⇒ Object



18
19
20
# File 'lib/dean/configuration_helper.rb', line 18

def s3_settings_for_environment(environment)
  symbolize_keys environment[:s3_settings]
end