aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib/rails/generators/rails/task/task_generator.rb
blob: 8a62d9e8eb3a4438316ab6e60ce827c3a590fd08 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
module Rails
  module Generators
    class TaskGenerator < NamedBase
      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