Class: Golem::Command::Environment

Inherits:
Base
  • Object
show all
Defined in:
lib/golem/command/environment.rb

Overview

Command for listing configuration variables.

Instance Method Summary collapse

Methods inherited from Base

#command, #initialize, #verbose?

Constructor Details

This class inherits a constructor from Golem::Command::Base

Instance Method Details

#runObject

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