1
0
mirror of https://github.com/meineerde/redmine.git synced 2026-03-11 03:33:07 +00:00
redmine/script/about

20 lines
439 B
Ruby
Executable File

#!/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)