#!/usr/bin/env ruby require File.dirname(__FILE__) + '/../config/boot' require "#{RAILS_ROOT}/config/environment" def usage puts <<-EOF About your Redmine's environment Usage: script/about [options] --gems Include list of installed gems -- help This help text EOF exit(0) end usage if ARGV.include? "--help" options = ARGV.collect{|a| $1 if a =~ /--(\w+)/}.compact puts Redmine::About.info(options)