Class: GitCli::Global
- Inherits:
-
Object
- Object
- GitCli::Global
- Includes:
- Singleton
- Defined in:
- lib/git_cli/global.rb
Instance Attribute Summary collapse
-
#logger ⇒ Object
readonly
Returns the value of attribute logger.
Instance Method Summary collapse
-
#initialize ⇒ Global
constructor
A new instance of Global.
Constructor Details
#initialize ⇒ Global
Returns a new instance of Global.
29 30 31 32 33 34 35 36 37 |
# File 'lib/git_cli/global.rb', line 29 def initialize debug = ENV['GitCli_Debug'] debugOut = ENV['GitCli_DebugOut'] || STDOUT if debug.nil? @logger = Tlogger.new('git_cli.log', 5, 1024*1024*10) else @logger = Tlogger.new(debugOut) end end |
Instance Attribute Details
#logger ⇒ Object (readonly)
Returns the value of attribute logger.
28 29 30 |
# File 'lib/git_cli/global.rb', line 28 def logger @logger end |