Module: Exportr::Config

Included in:
Command, Helpers
Defined in:
lib/exportr/config.rb

Constant Summary collapse

CONFIG_FILE =

Default config file location.

'config/exportr.yml'
NOT_RAILS =

Default error message if CLI is run from anywhere but the root

'Could not detect rails application.'
NO_CONFIG_FILE =

Default error message if there is no config file present.

'You must run `rails generate exportr` first.'

Class Method Summary collapse

Class Method Details

.extended(base) ⇒ Object



14
15
16
17
18
# File 'lib/exportr/config.rb', line 14

def self.extended base
  constants.each do |const| 
    base.const_set const, const_get(const)
  end
end