module NewlineHw
Constants
- SLEEP_TIME
- VERSION
Public Instance Methods
config()
click to toggle source
# File lib/newline_hw.rb, line 21 def config Config.new end
logfile()
click to toggle source
# File lib/newline_hw.rb, line 29 def logfile File.expand_path config.log_file end
make_log_directory()
click to toggle source
# File lib/newline_hw.rb, line 33 def make_log_directory return if Dir.exist?(File.dirname(NewlineHw.logfile)) Dir.mkdir(File.dirname(NewlineHw.logfile)) end
remove_log_directory()
click to toggle source
# File lib/newline_hw.rb, line 38 def remove_log_directory return unless Dir.exist?(File.dirname(NewlineHw.logfile)) FileUtils.remove_dir(File.dirname(NewlineHw.logfile)) end
root_path()
click to toggle source
# File lib/newline_hw.rb, line 25 def root_path File.expand_path("../..", __FILE__) end