Thor task to generate skeleton for a new thor task project
Ruby
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib
templates
README.markdown

README.markdown

Thor Task Skeleton

A Thor based generator to rapidly create a new Thor Task project.

Installation

Currently requires installation of my fork of the thor gem (0.13.5), or any fork building on this fork.

http://github.com/kristianmandrup/thor

  
$ git clone http://github.com/kristianmandrup/thor
$ cd thor
$ rake install

Then install the thor generator as a thor task!

  
$ git clone git@github.com:kristianmandrup/thortask_generator.git
$ cd thortask_generator  
$ thor install lib/thortask.thor

Usage

  
$ thor thortask mytask

Generates skeleton structure for new thor task project

options

  • --namespace : string indicating the namespace to place the tasks in
  
$ thor thortask good --namespace project

Creates task project:good

  • --skip-rspec, --skip_cucumber, skip generation of skeleton tests using rspec and cucumber
  
$ thor thortask good --namespace project --skip-rspec --skip_cucumber

Creates task project:good without any tests generated

TODO

Allow templates to be deployed within ~/.thor in a templates dir for each task directory.

Example deployment structure:

.thor
  + my_task
    + templates
    - main.thor

  + my_other_task
    + templates
    - main.thor

Community

Suggestions for improvement are welcome!