bin/remote_syslog in remote_syslog-0.1.0 vs bin/remote_syslog in remote_syslog-1.0.0

- old
+ new

@@ -1,10 +1,7 @@ #!/usr/bin/env ruby -require 'rubygems' -require 'bundler' - require 'optparse' require 'yaml' require 'pathname' require 'socket' @@ -88,11 +85,11 @@ puts '' puts op exit end - # handle relative paths before Daemonize changes the wd to / - files.map! { |f| File.expand_path(f) } + # handle relative paths before Daemonize changes the wd to / and expand wildcards + files = files.map { |f| Dir.glob(f) }.flatten.map { |f| File.expand_path(f) }.uniq Daemons.run_proc(daemonize_options[:app_name], daemonize_options) do EventMachine.run do socket = EventMachine.open_datagram_socket('0.0.0.0', 0)