Module: Geppetto

Defined in:
lib/geppetto/cli.rb,
lib/geppetto/version.rb,
lib/geppetto.rb

Defined Under Namespace

Modules: NetHTTPService Classes: CLI

Constant Summary collapse

VERSION =
'0.9.8'

Class Method Summary collapse

Class Method Details

.log(msg) ⇒ Object



18
19
20
21
22
23
24
# File 'lib/geppetto.rb', line 18

def self.log(msg)
  @@log ||=  Logger.new("geppetto.log", 'daily')
  # Filterout client secret
  match = msg.match(/.*client_secret=([a-z0-9]+)/)
  msg.sub!(match[1], '[filtered]') if match
  @@log.debug(msg)
end