]> git.openstreetmap.org Git - rails.git/blob - vendor/generators/daemon/daemon_generator.rb
Use unobtrusive JS for routing related events
[rails.git] / vendor / generators / daemon / daemon_generator.rb
1 class DaemonGenerator < Rails::Generator::NamedBase
2   def manifest
3     record do |m|
4       m.directory "lib/daemons"
5       m.file "daemons", "script/daemons", :chmod => 0755
6       m.template "script.rb", "lib/daemons/#{file_name}.rb", :chmod => 0755
7       m.template "script_ctl", "lib/daemons/#{file_name}_ctl", :chmod => 0755
8       m.file "daemons.yml", "config/daemons.yml"
9     end
10   end
11 end