Module: PowerRake::ConfigHelper
- Included in:
- PowerRake
- Defined in:
- lib/power-rake/helpers/config_helper.rb
Instance Method Summary collapse
Instance Method Details
#config ⇒ Object
5 6 7 |
# File 'lib/power-rake/helpers/config_helper.rb', line 5 def config @config ||= Config.new(data) end |
#config_file ⇒ Object
17 18 19 |
# File 'lib/power-rake/helpers/config_helper.rb', line 17 def config_file ENV['RAKE_CONFIG'] || 'power-rake.yml' end |
#configure {|config| ... } ⇒ Object
9 10 11 |
# File 'lib/power-rake/helpers/config_helper.rb', line 9 def configure yield(config) end |
#current_env ⇒ Object
13 14 15 |
# File 'lib/power-rake/helpers/config_helper.rb', line 13 def current_env ENV['RAKE_ENV'] || :development end |