Module: Jank

Defined in:
lib/go.rb,
lib/debug.rb,
lib/config.rb,
lib/janker.rb,
lib/command.rb,
lib/executor.rb,
lib/go_command.rb,
lib/jank_command.rb,
lib/godoc_command.rb,
lib/gofmt_command.rb,
lib/gocode_command.rb,
lib/golint_command.rb,
lib/goimports_command.rb

Defined Under Namespace

Classes: Command, Config, Executor, Go, GoCommand, GocodeCommand, GodocCommand, GofmtCommand, GoimportsCommand, GolintCommand, JankCommand, Janker

Class Method Summary collapse

Class Method Details

.debug_log(msg) ⇒ Object



2
3
4
5
6
7
8
# File 'lib/debug.rb', line 2

def Jank.debug_log(msg)
  if ENV.has_key? 'JANK_DEBUG'
    open("/tmp/jank.log", 'a') do |f|
      f.puts msg
    end
  end
end