class PMD::Config
Public Class Methods
base_dir()
click to toggle source
# File lib/pmd/config.rb, line 8 def self.base_dir return @@base_dir end
break_length()
click to toggle source
# File lib/pmd/config.rb, line 38 def self.break_length value = 3 if ENV.key "POMODORO_BREAK_LENGTH" value = ENV["POMODORO_BREAK_LENGTH"].to_i end return value * 60 end
counter_path()
click to toggle source
# File lib/pmd/config.rb, line 24 def self.counter_path return File.join @@base_dir, "counter" end
pause_path()
click to toggle source
# File lib/pmd/config.rb, line 16 def self.pause_path return File.join @@base_dir, "pause" end
pomodoro_length()
click to toggle source
return seconds needed for pomodoro
# File lib/pmd/config.rb, line 29 def self.pomodoro_length value = 25 value = 1 if ENV.key "POMODORO_LENGTH" value = ENV["POMODORO_LENGTH"].to_i end return value * 60 end
restart_path()
click to toggle source
# File lib/pmd/config.rb, line 20 def self.restart_path return File.join @@base_dir, "restart" end
stop_path()
click to toggle source
# File lib/pmd/config.rb, line 12 def self.stop_path return File.join @@base_dir, "stop" end