]> git.openstreetmap.org Git - rails.git/blob - lib/daemons/gpx_import_ctl
Require data to be public before editing
[rails.git] / lib / daemons / gpx_import_ctl
1 #!/usr/bin/env ruby
2 require 'rubygems'
3 require "daemons"
4 require 'yaml'
5 require 'erb'
6 require 'active_support'
7
8 options = YAML.load(
9   ERB.new(
10   IO.read(
11   File.dirname(__FILE__) + "/../../config/daemons.yml"
12   )).result).with_indifferent_access
13 options[:dir_mode] = options[:dir_mode].to_sym
14
15 Daemons.run File.dirname(__FILE__) + '/gpx_import.rb', options