Class: Dean::ConfigurationHelper
- Inherits:
-
Object
- Object
- Dean::ConfigurationHelper
- Defined in:
- lib/dean/configuration_helper.rb
Instance Method Summary collapse
- #all_environments ⇒ Object
- #build_settings_for_environment(environment) ⇒ Object
- #s3_settings_for_environment(environment) ⇒ Object
Instance Method Details
#all_environments ⇒ Object
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 |