Add todo.txt pom and its dependencies
This commit is contained in:
parent
1e7adfa51c
commit
af5315c5b9
10 changed files with 403 additions and 0 deletions
19
.todo.actions.d/pom/lib/pomo_logger.rb
Normal file
19
.todo.actions.d/pom/lib/pomo_logger.rb
Normal file
|
@ -0,0 +1,19 @@
|
|||
class PomoLogger
|
||||
|
||||
attr_accessor :options
|
||||
|
||||
def initialize opts
|
||||
@options = opts
|
||||
end
|
||||
|
||||
def log_pomodoro_started task
|
||||
TerminalNotifierLogger.new.notify_start(task)
|
||||
FileLogger.new(options[:pomodoro_log_file]).notify_start(task)
|
||||
end
|
||||
|
||||
def log_pomodoro_completed task
|
||||
TerminalNotifierLogger.new.notify_completed(task)
|
||||
FileLogger.new(options[:pomodoro_log_file]).notify_completed(task)
|
||||
end
|
||||
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue