0.0
No commit activity in last 3 years
No release in over 3 years
Centerstage is a command line script to generate Sinatra based applications with data mapper, including an extendable Rakefile for generating new routes and models.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.11
~> 10.0

Runtime

>= 1.1.7, ~> 1.1
~> 0.19.1
 Project Readme

Centerstage

Centerstage is a commandline helper for creating Sinatra/Datamapper apps, including Rakefile and templates for creating routes and models.

Installation

To install, just run:

$ gem install centerstage

Usage

Once Centerstage is installed, you can get started using it by running:

$ centerstage setup

This will download the project template from the repo and install it to private directory (~/.center-stage). You can also, optionally, pass a fork url of your Centerstage project setup. When you pass your fork (fork of http://github.com/wess/center-stage), Centerstage will attempt to download your fork and setup the project template for create. Example:

$ centerstage setup "http://github.com/<yourname>/center-stage"

Once setup, you create your new Centerstage project using:

$ centerstage create /path/to/project
$ cd /path/to/project
$ bundle install

This will create a folder and a stubbed out Sinatra/Datamapper project that includes a Rakefile with prewritten commands for generating routes and models. In the project's directory there is a .templates folder, this folder contains the templates used to generate routes (views) and models. You can change or update these as you see fit. When you use the generate command, Rake will look to the template when generating the file.

You can visit http://github.com/wess/center-stage to see the project's setup. You can fork this repo and and make changes, and rerun centerstage setup "your-fork-url" to use your fork.

Development

Pull requests are always welcome, either to the main center-stage project setup or to the centerstage gem.

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/wess/center-stage.

License

The gem is available as open source under the terms of the MIT License.