Sha256: 8757bcb010b74c6f9df7bc6a73335e59d731374207cd92426f228593ac189546

Contents?: true

Size: 300 Bytes

Versions: 23

Compression:

Stored size: 300 Bytes

Contents

module Dashing
  module Generators
    class JobGenerator < ::Rails::Generators::NamedBase

      source_root File.expand_path('../../templates', __FILE__)

      desc 'Creates a new Dashing job.'

      def job
        template 'jobs/new.rb', "app/jobs/#{file_name}.rb"
      end

    end
  end
end

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
dashing-rails-2.6.2 lib/generators/dashing/job_generator.rb
dashing-rails-2.6.1 lib/generators/dashing/job_generator.rb
dashing-rails-2.6.0 lib/generators/dashing/job_generator.rb
dashing-rails-2.5.0 lib/generators/dashing/job_generator.rb
dashing-rails-2.4.5 lib/generators/dashing/job_generator.rb
dashing-rails-2.4.4 lib/generators/dashing/job_generator.rb
dashing-rails-2.4.3 lib/generators/dashing/job_generator.rb
dashing-rails-2.4.2 lib/generators/dashing/job_generator.rb
dashing-rails-2.4.1 lib/generators/dashing/job_generator.rb
dashing-rails-2.4.0 lib/generators/dashing/job_generator.rb
dashing-rails-2.3.2 lib/generators/dashing/job_generator.rb
dashing-rails-2.3.1 lib/generators/dashing/job_generator.rb
dashing-rails-2.3.0 lib/generators/dashing/job_generator.rb
dashing-rails-2.2.0 lib/generators/dashing/job_generator.rb
dashing-rails-2.1.1 lib/generators/dashing/job_generator.rb
dashing-rails-2.1.0 lib/generators/dashing/job_generator.rb
dashing-rails-2.0.2 lib/generators/dashing/job_generator.rb
dashing-rails-2.0.1 lib/generators/dashing/job_generator.rb
dashing-rails-2.0.0 lib/generators/dashing/job_generator.rb
dashing-rails-1.0.3 lib/generators/dashing/job_generator.rb