Module: Motion::EnvironmentSettings

Defined in:
lib/motion-environment-settings.rb,
lib/motion-environment-settings/version.rb,
lib/motion-environment-settings/generator.rb

Defined Under Namespace

Classes: Generator

Constant Summary collapse

DEFAULT_CONFIG_PATH =
"./config/environments"
VERSION =
"0.0.4"

Class Method Summary collapse

Class Method Details

.config_pathObject



9
10
11
12
13
14
15
# File 'lib/motion-environment-settings.rb', line 9

def self.config_path
  return @@config_path if defined?(@@config_path)
  puts "===== motion-environment-settings ===="
  puts "* No config path explicitly set, using default: #{DEFAULT_CONFIG_PATH}"
  puts "* Set your config path using `Motion::EnvironmentSettings.config_path=(\"your/path\") in your project's Rakefile"
  DEFAULT_CONFIG_PATH
end

.config_path=(new_config_path) ⇒ Object



17
18
19
# File 'lib/motion-environment-settings.rb', line 17

def self.config_path=(new_config_path)
  @@config_path = new_config_path
end