Class: ClockworkdGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- ClockworkdGenerator
- Includes:
- Rails::Generators::Migration
- Defined in:
- lib/generators/clockworkd/clockworkd_generator.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.source_root ⇒ Object
8 9 10 |
# File 'lib/generators/clockworkd/clockworkd_generator.rb', line 8 def self.source_root @source_root ||= File.join(File.dirname(__FILE__), 'templates') end |
Instance Method Details
#create_clockworkd_file ⇒ Object
17 18 19 |
# File 'lib/generators/clockworkd/clockworkd_generator.rb', line 17 def create_clockworkd_file template 'clockworkd.yml', 'config/clockworkd.yml' end |
#create_script_file ⇒ Object
12 13 14 15 |
# File 'lib/generators/clockworkd/clockworkd_generator.rb', line 12 def create_script_file template 'script', 'script/clockworkd' chmod 'script/clockworkd', 0755 end |