Find file
5ad7f8a Oct 14, 2012
@kirs @robin850
13 lines (10 sloc) 285 Bytes
module Rails
module Generators
class TaskGenerator < NamedBase # :nodoc:
argument :actions, type: :array, default: [], banner: "action action"
def create_task_files
template 'task.rb', File.join('lib/tasks', "#{file_name}.rake")
end
end
end
end