Module: SimpleDeploy::Configuration
- Extended by:
- Configuration
- Included in:
- Configuration
- Defined in:
- lib/simple_deploy/configuration.rb
Defined Under Namespace
Classes: Config
Instance Method Summary collapse
Instance Method Details
#configure(environment, custom_config = {}) ⇒ Object
6 7 8 9 10 |
# File 'lib/simple_deploy/configuration.rb', line 6 def configure(environment, custom_config = {}) raw_config = custom_config.fetch(:config) { load_config_file } Config.new raw_config['environments'][environment], raw_config['notifications'] end |
#environments(custom_config = {}) ⇒ Object
12 13 14 15 |
# File 'lib/simple_deploy/configuration.rb', line 12 def environments(custom_config = {}) raw_config = custom_config.fetch(:config) { load_config_file } raw_config['environments'] end |