class Rails::Generators::BatchGenerator
Public Class Methods
orm()
click to toggle source
# File lib/generators/batch/batch_generator.rb, line 10 def self.orm Rails::Generators.options[:rails][:orm] || :active_record end
source_root()
click to toggle source
# File lib/generators/batch/batch_generator.rb, line 14 def self.source_root File.join(File.dirname(__FILE__), 'templates', (orm.to_s unless orm.class.eql?(String))) end
Public Instance Methods
create_batch_file()
click to toggle source
# File lib/generators/batch/batch_generator.rb, line 18 def create_batch_file template 'batch.rb', File.join(BatchManager.batch_dir, class_path, "#{file_name}.rb") end