Sha256: 7fa5816ea21ccf8710b5e0b34881ed2e2dd1a6f62821928a35fb3073933ab210
Contents?: true
Size: 508 Bytes
Versions: 4
Compression:
Stored size: 508 Bytes
Contents
#!/usr/bin/env ruby PASSENGER_ROOT = File.expand_path(File.dirname(__FILE__) << "/..") def help puts "Tool for showing Passenger configuration information." puts "Usage: passenger-config <OPTIONS>" puts puts "Options:" puts " --root Show Passenger's root directory." puts " --version Show Passenger's version number." end case ARGV[0] when "--root" puts PASSENGER_ROOT when "--version" File.read("#{PASSENGER_ROOT}/Rakefile") =~ /^PACKAGE_VERSION = "(.*)"/ puts $1 else help exit 1 end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
passenger-1.0.2 | bin/passenger-config |
passenger-1.0.3 | bin/passenger-config |
passenger-1.0.5 | bin/passenger-config |
passenger-1.0.4 | bin/passenger-config |