module WorkingTimes::Config
Private Instance Methods
current_company()
click to toggle source
# File lib/working_times/config.rb, line 31 def current_company wtconf['company'] end
current_term()
click to toggle source
# File lib/working_times/config.rb, line 23 def current_term wtconf['term'] end
data_dir()
click to toggle source
# File lib/working_times/config.rb, line 7 def data_dir File.expand_path('.') end
dir_invoice_current_term()
click to toggle source
# File lib/working_times/config.rb, line 43 def dir_invoice_current_term File.join(invoice_dir, current_term) end
invoice_dir()
click to toggle source
# File lib/working_times/config.rb, line 35 def invoice_dir File.join(data_dir, 'invoices') end
invoice_info()
click to toggle source
# File lib/working_times/config.rb, line 39 def invoice_info wtconf['invoice'] end
path_current_term()
click to toggle source
# File lib/working_times/config.rb, line 27 def path_current_term File.join(term_dir, current_term) end
path_invoice_current_term()
click to toggle source
# File lib/working_times/config.rb, line 47 def path_invoice_current_term File.join(dir_invoice_current_term, "#{current_term}.tex") end
path_working_flag()
click to toggle source
# File lib/working_times/config.rb, line 19 def path_working_flag File.join(data_dir, '.working') end
path_wtconf()
click to toggle source
# File lib/working_times/config.rb, line 11 def path_wtconf File.join(data_dir, 'wtconf.json') end
term_dir()
click to toggle source
# File lib/working_times/config.rb, line 15 def term_dir File.join(data_dir, 'terms') end
wtconf()
click to toggle source
# File lib/working_times/config.rb, line 51 def wtconf JSON.parse(File.read(path_wtconf)) end