Sha256: e0480f69dc01f4f0740aa08fb10368e2576aafa7c082b06a98dffd550fd8cbe7
Contents?: true
Size: 589 Bytes
Versions: 50
Compression:
Stored size: 589 Bytes
Contents
module Workhorse class InstallGenerator < Rails::Generators::Base include Rails::Generators::Migration source_root File.expand_path('../templates', __FILE__) def self.next_migration_number(_dir) Time.now.utc.strftime('%Y%m%d%H%M%S') end def install_migration migration_template 'create_table_jobs.rb', 'db/migrate/create_table_jobs.rb' end def install_daemon_script template 'bin/workhorse.rb' chmod 'bin/workhorse.rb', 0o755 end def install_initializer template 'config/initializers/workhorse.rb' end end end
Version data entries
50 entries across 50 versions & 1 rubygems