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.1.14.1 lib/rails/generators/rails/task/task_generator.rb
angular-rails4-templates-0.4.1 vendor/ruby/2.1.0/gems/railties-4.2.4/lib/rails/generators/rails/task/task_generator.rb
angular-rails4-templates-0.4.1 vendor/ruby/2.1.0/gems/railties-4.1.13/lib/rails/generators/rails/task/task_generator.rb
angular-rails4-templates-0.4.0 vendor/ruby/2.1.0/gems/railties-4.2.4/lib/rails/generators/rails/task/task_generator.rb
angular-rails4-templates-0.4.0 vendor/ruby/2.1.0/gems/railties-4.1.13/lib/rails/generators/rails/task/task_generator.rb
railties-5.0.0.beta1 lib/rails/generators/rails/task/task_generator.rb
angular-rails4-templates-0.3.0 vendor/ruby/2.1.0/gems/railties-4.1.13/lib/rails/generators/rails/task/task_generator.rb
angular-rails4-templates-0.3.0 vendor/ruby/2.1.0/gems/railties-4.2.4/lib/rails/generators/rails/task/task_generator.rb
railties-4.1.14 lib/rails/generators/rails/task/task_generator.rb
railties-4.2.5 lib/rails/generators/rails/task/task_generator.rb
railties-4.2.5.rc2 lib/rails/generators/rails/task/task_generator.rb
railties-4.1.14.rc2 lib/rails/generators/rails/task/task_generator.rb
railties-4.2.5.rc1 lib/rails/generators/rails/task/task_generator.rb
railties-4.1.14.rc1 lib/rails/generators/rails/task/task_generator.rb
sc_core-0.0.7 test/dummy/vendor/bundle/ruby/2.2.0/gems/railties-4.2.4/lib/rails/generators/rails/task/task_generator.rb
railties-4.2.4 lib/rails/generators/rails/task/task_generator.rb
railties-4.1.13 lib/rails/generators/rails/task/task_generator.rb
railties-4.2.4.rc1 lib/rails/generators/rails/task/task_generator.rb
railties-4.1.13.rc1 lib/rails/generators/rails/task/task_generator.rb
solidus_backend-1.0.0.pre3 vendor/bundle/gems/railties-4.2.3/lib/rails/generators/rails/task/task_generator.rb