lib/timetrap/cli.rb in timetrap-1.8.2 vs lib/timetrap/cli.rb in timetrap-1.8.3.beta1
- old
+ new
@@ -223,9 +223,14 @@
def backend
exec "sqlite3 #{DB_NAME}"
end
def in
+ if Config['sheets_are_exclusive']
+ Timer.stop_other_sheets(args['-a']).each do |checked_out_of|
+ warn "Checked out of sheet #{checked_out_of.sheet.inspect}."
+ end
+ end
Timer.start unused_args, args['-a']
warn "Checked into sheet #{Timer.current_sheet.inspect}."
end
def resume