Generate packages to distribute Rails applications
Ruby
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
bin
lib
.gitignore
Gemfile
LICENSE.txt
README.md
Rakefile
dist.gemspec

README.md

Dist

Generate packages to distribute Rails applications

Installation

$ gem install dist

Usage

In your Rails root, run:

$ dist

If it's the first time you run it, it will prompt you to run:

$ dist init

This will create a config/dist.rb file that contains some information about how to create the package.

A typical config/dist.rb file looks like this:

set :application, 'myrailsapp'
set :version, '1.0'
set :maintainer, 'John Doe <john@doe.com>'
set :description, 'My awesome Rails app'
set :summary, 'Demonstrates the usage of dist'

use :mail

Settings

To prompt for settings while installing the package yo:

config :settings do
  string :host, prompt: "Enter the host name"
end

This will prompt the user to enter a host name. The installer package will replace the key 'host' inside 'config/settings.yml' with the inputted value.

If settings.yml contains a 'production' key, 'host' will be replaced inside 'production'.

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