1 class DaemonGenerator < Rails::Generator::NamedBase
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"