Grinta / moulinettes

moulinettes

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Moulinettes

moulinettes logo

A simple template to run any data migrations within your Rails app.

Installation

Add this line to your application's Gemfile:

gem "moulinettes"

Usage

Generate a new moulinette using the generator:

  # Both syntaxes are valid and will generate the same file
  bundle exec rails g moulinettes:moulinette MyMoulinette 
  bundle exec rails g moulinettes:moulinette my_moulinette 

This will generate a new file in lib/tasks/moulinettes using the template provided in the gem.

Options

You can also pass the following options to the generator:

  • --editor or -e to specify the editor to be used to open the file. Default is $EDITOR.
  • --open or -o to flag the file to be opened in your default editor after generation. Default is true.

You can then run the task using the following command:

  bundle exec rails moulinettes:my_moulinette

About

moulinettes

License:MIT License


Languages

Language:Ruby 100.0%