Class: Golem::Command::Environment
- Inherits:
-
Base
- Object
- Base
- Golem::Command::Environment
- Defined in:
- lib/golem/command/environment.rb
Overview
Command for listing configuration variables.
Constant Summary
Instance Method Summary (collapse)
-
- (Object) run
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
- (Object) run
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 |