Sha256: 2c184a72d9385415e2dc81eeee793de4831dd9f47a243a1957cea41b42511481
Contents?: true
Size: 307 Bytes
Versions: 3
Compression:
Stored size: 307 Bytes
Contents
class Logger # def initialize(options={}) # @homedir = options[:homedir] ||= "log" # FileUtils.mkdir @homedir unless Dir[@homedir].present? # FileUtils.touch "#{@homedir}/ferry.log" # end # def write(msg) # log = File.open("#{@homedir}/ferry.log", 'w') # log.puts msg # end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
ferry-0.0.6 | lib/ferry/logger.rb |
ferry-0.0.5 | lib/ferry/logger.rb |
ferry-0.0.4 | lib/ferry/logger.rb |