tinynumbers / plur

Opinionated development workflow and commonly used tools for Ruby on Rails based development.

Home Page:https://github.com/subosito/plur

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Plur

Opinionated development workflow and commonly used tools for Ruby on Rails based development.

Logo

Installation

As usual, add the Plur into your Gemfile:

gem 'plur'

Usage

Currently there are two parts on Plur, deployment and helper:

Deployment

If you're using Capistrano, Figaro, Foreman, and deploy it into Ubuntu box or any OS that use Upstart, then you're on right track :)

# deploy.rb
require 'plur/capistrano'

#
## Below is the default value, I mean you don't need write these, except you are differ.
#

# foreman
set :foreman_format,      "upstart"
set :foreman_location,    "/etc/init"
set :foreman_procfile,    "Procfile"
set :foreman_root,        release_path
set :foreman_port,        5000
set :foreman_app,         application
set :foreman_user,        user
set :foreman_log,         'shared_path/log'
set :foreman_concurrency, false

# figaro
set :figaro_yaml,     true
set :figaro_symlink,  true
set :figaro_output,   'shared_path/application.yml'
set :figaro_config,   'latest_release/config/application.yml'

# upstart
set :service_name, application

If you like to locally precompile assets to reduce load on server, you can add:

# deploy.rb
require 'plur/capistrano/local'

Helpers

By default Plur will install several helpers, see view.rb:

- current_locale
- rtl_locales
- rtl?
- orientation
- notifications
- namespace_name
- body_attributes
- build_html

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

About

Opinionated development workflow and commonly used tools for Ruby on Rails based development.

https://github.com/subosito/plur

License:MIT License


Languages

Language:Ruby 100.0%