Module | Ramaze::Bin::Runner |
In: |
lib/ramaze/bin/runner.rb
|
Module used for running a particular command based on the specified command line arguments.
Usage:
ramaze --help # Shows a help message ramaze -h # Shows a help message as well ramaze -v # Shows the version of Ramaze ramaze [COMMAND] # Runs [COMMAND]
@author Yorick Peterse @since 21-07-2011
Commands | = | { :start => Ramaze::Bin::Start, :stop => Ramaze::Bin::Stop, :restart => Ramaze::Bin::Restart, :status => Ramaze::Bin::Status, :create => Ramaze::Bin::Create, :console => Ramaze::Bin::Console, } | Hash containing all the available commands, their names and their classes. | |
Banner | = | <<-TXT.strip Ramaze is a simple, light and modular open-source web application framework written in Ruby. Usage: ramaze [COMMAND] [OPTIONS] Example: ramaze create blog TXT .strip | String containing the banner of the main command. |
Generates an array of "rows" where each row contains the name and description of a command. The descriptions of all commands are aligned based on the length of the longest command name.
@author Yorick Peterse @since 21-07-2011 @return [Array]