X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/5cbd4038edb32b0304bd766e70fc680ea447b52b..366a9e9097e6b8ca19cd3ecb2b08db1fbc0e2274:/lib/daemons/gpx_import_ctl?ds=inline diff --git a/lib/daemons/gpx_import_ctl b/lib/daemons/gpx_import_ctl index fc81e7549..00b3a00b3 100755 --- a/lib/daemons/gpx_import_ctl +++ b/lib/daemons/gpx_import_ctl @@ -1,8 +1,8 @@ #!/usr/bin/env ruby -require 'rubygems' +require "rubygems" require "daemons" -require 'yaml' -require 'erb' +require "yaml" +require "erb" class Hash def with_symbols! @@ -11,11 +11,13 @@ class Hash end end -options = YAML.load( +options = YAML.safe_load( ERB.new( IO.read( File.dirname(__FILE__) + "/../../config/daemons.yml" - )).result).with_symbols! + ) + ).result +).with_symbols! options[:dir_mode] = options[:dir_mode].to_sym -Daemons.run File.dirname(__FILE__) + '/gpx_import.rb', options +Daemons.run File.dirname(__FILE__) + "/gpx_import.rb", options