Permalink
Browse files

Fix name of config file in warning

  • Loading branch information...
1 parent b4a083e commit 68a164a65efe24c23d9f3eb99f2a82f5e390c12f @sandro sandro committed Apr 26, 2010
Showing with 3 additions and 2 deletions.
  1. +3 −2 lib/specjour/rsync_daemon.rb
@@ -6,6 +6,7 @@ class RsyncDaemon
# Corresponds to the version of specjour that changed the configuration
# file.
CONFIG_VERSION = "0.2.3".freeze
+ CONFIG_FILE_NAME = "rsyncd.conf"
PID_FILE_NAME = "rsyncd.pid"
attr_reader :project_path, :project_name
@@ -20,7 +21,7 @@ def config_directory
end
def config_file
- @config_file ||= File.join(config_directory, "rsyncd.conf")
+ @config_file ||= File.join(config_directory, CONFIG_FILE_NAME)
end
def pid
@@ -59,7 +60,7 @@ def check_config_version
if out_of_date? Regexp.last_match(1)
Kernel.warn <<-WARN
-Specjour has made changes to the way rsync.d is generated.
+Specjour has made changes to the way #{CONFIG_FILE_NAME} is generated.
Back up '#{config_file}'
and re-run the dispatcher to generate the new config file.
WARN

0 comments on commit 68a164a

Please sign in to comment.