class TogglIntegrator::Command
class Command
Public Class Methods
new()
click to toggle source
# File lib/toggl_integrator/command.rb, line 10 def initialize DB.prepare end
run()
click to toggle source
# File lib/toggl_integrator/command.rb, line 6 def self.run new.execute end
Public Instance Methods
execute()
click to toggle source
# File lib/toggl_integrator/command.rb, line 14 def execute TimeEntoryService.fetch_and_store GoogleCalendar.sync_time_entries rescue StandardError => e Logging.error(e.message) end