aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib/rails/generators/rails/task/task_generator.rb
blob: b7290a74472a7040214e4bbc8f347bfa94f54603 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
# frozen_string_literal: true

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