Class: Golem::Command::Environment
- Defined in:
- lib/golem/command/environment.rb
Overview
Command for listing configuration variables.
Instance Method Summary collapse
-
#run ⇒ Object
List configuration variables that are set.
Methods inherited from Base
#command, #initialize, #verbose?
Constructor Details
This class inherits a constructor from Golem::Command::Base
Instance Method Details
#run ⇒ Object
List configuration variables that are set.
7 8 9 10 |
# File 'lib/golem/command/environment.rb', line 7 def run print "Configuration values:\n" print Golem::Config.config_hash.collect {|k, v| "\t " + k.to_s + ": " + v.to_s}.join("\n") + "\n" end |