Permalink
Browse files

rename config/script_server_config.yml to config/script_server.yml to…

… remove redundancy
  • Loading branch information...
1 parent 670127a commit b38cf476612ca9dcb26924258d31ccdd97d0f5c9 @jhass jhass committed Sep 7, 2011
View
@@ -23,6 +23,11 @@ def self.env
if Rails.env == 'script_server' # load from the special script_server_config.yml file
require 'yaml'
script_server_config_file = File.join(Rails.root, 'config', 'script_server_config.yml')
+ if File.exists? script_server_config_file
+ $stderr.puts "Deprecation warning: config/script_server_config.yml has been renamed to config/script_server.yml"
+ else
+ script_server_config_file = File.join(Rails.root, 'config', 'script_server.yml')
+ end
begin
print YAML.load_file(script_server_config_file)['script_server'][setting_name]
rescue
View
@@ -11,6 +11,7 @@ cd $(dirname $(readlink -e $0))/..
# Check if script_server.yml exists
if [ ! -e 'config/script_server.yml' ]; then
+ echo "INFO: config/script_server_config.yml has been renamed to config/script_server.yml" >&2
echo 'FATAL: config/script_server.yml is missing! Copy over config/script_server.yml.example to config/script_server.yml and edit it properly!' >&2
exit 69
fi

0 comments on commit b38cf47

Please sign in to comment.