Sha256: eab30a9e88f145f2adc00c1d5f70cef1ecb81abf8879fd8222cb4c41e9531206

Contents?: true

Size: 285 Bytes

Versions: 161

Compression:

Stored size: 285 Bytes

Contents

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

Version data entries

161 entries across 156 versions & 12 rubygems

Version Path
railties-4.2.11.3 lib/rails/generators/rails/task/task_generator.rb
railties-4.2.11.2 lib/rails/generators/rails/task/task_generator.rb
railties-5.0.7.2 lib/rails/generators/rails/task/task_generator.rb
railties-4.2.11.1 lib/rails/generators/rails/task/task_generator.rb
railties-5.0.7.1 lib/rails/generators/rails/task/task_generator.rb
railties-4.2.11 lib/rails/generators/rails/task/task_generator.rb
railties-5.0.7 lib/rails/generators/rails/task/task_generator.rb
railties-4.2.10 lib/rails/generators/rails/task/task_generator.rb
railties-4.2.10.rc1 lib/rails/generators/rails/task/task_generator.rb
railties-5.0.6 lib/rails/generators/rails/task/task_generator.rb
railties-5.0.6.rc1 lib/rails/generators/rails/task/task_generator.rb
railties-5.0.5 lib/rails/generators/rails/task/task_generator.rb
railties-5.0.5.rc2 lib/rails/generators/rails/task/task_generator.rb
railties-5.0.5.rc1 lib/rails/generators/rails/task/task_generator.rb
railties-4.2.9 lib/rails/generators/rails/task/task_generator.rb
railties-4.2.9.rc2 lib/rails/generators/rails/task/task_generator.rb
railties-5.0.4 lib/rails/generators/rails/task/task_generator.rb
railties-5.0.4.rc1 lib/rails/generators/rails/task/task_generator.rb
railties-4.2.9.rc1 lib/rails/generators/rails/task/task_generator.rb
railties-5.0.3 lib/rails/generators/rails/task/task_generator.rb