lib/eye/config.rb in reel-eye-0.3.2 vs lib/eye/config.rb in reel-eye-0.4
- old
+ new
@@ -30,21 +30,21 @@
raise Eye::Dsl::Error, "blank pid_file for: #{no_pid_file.map{|c| c[:name]} * ', '}"
end
# Check dublicates of the full pid_file
- dubl_pids = all_processes.each_with_object(Hash.new(0)) do |o, h|
+ dubl_pids = all_processes.each_with_object(Hash.new(0)) do |o, h|
ex_pid_file = Eye::System.normalized_file(o[:pid_file], o[:working_dir])
h[ex_pid_file] += 1
end
dubl_pids = dubl_pids.select{|k,v| v>1}
if dubl_pids.present?
raise Eye::Dsl::Error, "dublicate pid_files: #{dubl_pids.inspect}"
end
# Check dublicates of the full_name
- dubl_names = all_processes.each_with_object(Hash.new(0)) do |o, h|
+ dubl_names = all_processes.each_with_object(Hash.new(0)) do |o, h|
full_name = "#{o[:application]}:#{o[:group]}:#{o[:name]}"
h[full_name] += 1
end
dubl_names = dubl_names.select{|k,v| v>1}
\ No newline at end of file