bin/clockworkd in clockwork-3.0.1 vs bin/clockworkd in clockwork-3.0.2

- old
+ new

@@ -61,19 +61,19 @@ puts opts exit 1 end optparser_abort opts, "ERROR: --clock=FILE is required." unless @options[:file] -optparser_abort opts, "ERROR: clock file #{@options[:file]} does not exist." unless File.exists?(@options[:file]) +optparser_abort opts, "ERROR: clock file #{@options[:file]} does not exist." unless File.exist?(@options[:file]) optparser_abort opts, "ERROR: File extension specified in --clock must be '.rb'" unless File.extname(@options[:file]) == ".rb" @options[:identifier] ||= "#{File.basename(@options[:file],'.*')}" process_name = "#{bin_basename}.#{@options[:identifier]}" @options[:log_dir] ||= @options[:pid_dir] -Dir.mkdir(@options[:pid_dir]) unless File.exists?(@options[:pid_dir]) -Dir.mkdir(@options[:log_dir]) unless File.exists?(@options[:log_dir]) +Dir.mkdir(@options[:pid_dir]) unless File.exist?(@options[:pid_dir]) +Dir.mkdir(@options[:log_dir]) unless File.exist?(@options[:log_dir]) puts "#{process_name}: pid file: #{File.expand_path(File.join(@options[:pid_dir],process_name + '.pid'))}" if @options[:log_output] puts "#{process_name}: output log file: #{File.expand_path(File.join(@options[:log_dir],process_name + '.output'))}"