Skip to content

Commit

Permalink
Showing 2 changed files with 14 additions and 5 deletions.
4 changes: 2 additions & 2 deletions library/rubinius/configuration.rb
Original file line number Diff line number Diff line change
@@ -24,7 +24,7 @@
s.vm_variable "immix.concurrent", false,
"Set whether we want the Immix mark phase to run concurrently"

s.vm_variable "immix.debug", :bool,
s.vm_variable "immix.debug", false,
"Print out collection stats when the Immix collector finishes"

s.vm_variable "honor_start", false,
@@ -128,7 +128,7 @@
m.vm_variable "statsd.server", "localhost:8125",
"The [host:]port of the StatsD server"

m.vm_variable "statsd.prefix", "host.$nodename.$pid.app.rbx",
m.vm_variable "statsd.prefix", "host.$NODENAME.$PID.app.rbx",
"Prefix for StatsD metric names"
end

15 changes: 12 additions & 3 deletions library/rubinius/configuration_variables.rb
Original file line number Diff line number Diff line change
@@ -78,10 +78,19 @@ def value_info
default = @options[:default]

"default: #{default}, possible: #{possible.map { |x| x[0] }.join(", ")}"
elsif @default
"default: #{@default}"
else
nil
value = case @default
when true
"yes (Bool)"
when false
"no (Bool)"
when nil
"none (Nil)"
else
"#{@default} (#{@default.class})"
end

"default: #{value}"
end
end

0 comments on commit b259e4b

Please sign in to comment.