bin/rconf in rconf-0.8.21 vs bin/rconf in rconf-0.8.29
- old
+ new
@@ -31,10 +31,11 @@
where [options] are:
EOS
opt :configurators, 'Show available configurators'
+ opt :platform, 'Show current platform'
opt :update, 'Update rconf to latest version'
opt :remove, 'Remove rconf from all gemsets'
opt :config, 'Set path to configuration file', :type => :string
opt :output, 'Output file (output to STDOUT by default)', :type => :string
opt :reconfigure, 'Bypass all checks and force configuration'
@@ -57,10 +58,12 @@
end
end
Command.set_verbose if opts[:verbose]
if opts[:configurators]
new.list_configurators
+ elsif opts[:platform]
+ new.show_platform
elsif opts[:update]
new.update
elsif opts[:remove]
new.remove
else
@@ -89,9 +92,20 @@
puts
end
end
puts
end
+ end
+
+ # Show current platform as detected by rconf
+ #
+ # === Return
+ # true:: Always return true
+ def show_platform
+ puts "rconf detected the following:\n\n"
+ puts "Family: #{Platform.family}"
+ puts "Flavor: #{Platform.flavor}"
+ puts "Release: #{Platform.release}"
end
# Update rconf to latest in all installed rubies
#
# === Return