appconf 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/appconf.rb +1 -1
- data/lib/appconf_version.rb +1 -1
- metadata +1 -1
data/lib/appconf.rb
CHANGED
@@ -48,7 +48,7 @@ class AppConfig
|
|
48
48
|
@@app_root_dir = File.expand_path(app_root_dir)
|
49
49
|
|
50
50
|
raise ArgumentError, 'deploy config directory does not exist or not a directory' if deploy_conf_dir && !File.directory?(deploy_conf_dir)
|
51
|
-
@@deploy_config_dir = deploy_conf_dir or ENV[
|
51
|
+
@@deploy_config_dir = deploy_conf_dir or ENV[@@app_name.upcase + '_CONF_DIR']
|
52
52
|
raise ConfigError, 'config directory `%s\' specifed by environment does not exist or not a directory' %
|
53
53
|
@@deploy_config_dir if @@deploy_config_dir && !File.directory?(@@deploy_config_dir)
|
54
54
|
end
|
data/lib/appconf_version.rb
CHANGED