Build Status

OneshotTaskGenerator

Simple rake task generator for oneshot tasks.

$ bin/rake generate oneshot FooBar
      create  lib/tasks/oneshot/20180205_foo_bar.rake

Then, skeleton file for oneshot rake task will be generated.

# Skeleton for this file was generated by `bin/rails generate oneshot FooBar`
# For copy and paste: `bin/rake oneshot:foo_bar_20180205`
namespace :oneshot do
  desc ''
  task foo_bar_20180205: :environment do
  end
end

Installation

Add this line to your application's Gemfile:

gem 'oneshot_task_generator'

And then execute:

$ bundle

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/s-osa/oneshot_task_generator.