Module: PowerRake::ConfigHelper

Included in:
PowerRake
Defined in:
lib/power-rake/helpers/config_helper.rb

Instance Method Summary collapse

Instance Method Details

#configObject



5
6
7
# File 'lib/power-rake/helpers/config_helper.rb', line 5

def config
  @config ||= Config.new(data)
end

#config_fileObject



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

Yields:



9
10
11
# File 'lib/power-rake/helpers/config_helper.rb', line 9

def configure
  yield(config)
end

#current_envObject



13
14
15
# File 'lib/power-rake/helpers/config_helper.rb', line 13

def current_env
  ENV['RAKE_ENV'] || :development
end