Class: TempestTime::Commands::Timer
- Inherits:
-
Thor
- Object
- Thor
- TempestTime::Commands::Timer
- Defined in:
- lib/tempest_time/commands/timer.rb,
lib/tempest_time/commands/timer/list.rb,
lib/tempest_time/commands/timer/pause.rb,
lib/tempest_time/commands/timer/start.rb,
lib/tempest_time/commands/timer/track.rb,
lib/tempest_time/commands/timer/delete.rb,
lib/tempest_time/commands/timer/status.rb
Defined Under Namespace
Classes: Delete, List, Pause, Start, Status, Track
Instance Method Summary collapse
- #delete(issue = nil) ⇒ Object
- #list ⇒ Object
- #pause(issue = nil) ⇒ Object
- #start(issue = nil) ⇒ Object
- #status(issue = nil) ⇒ Object
- #track(issue = nil) ⇒ Object
Instance Method Details
#delete(issue = nil) ⇒ Object
30 31 32 33 |
# File 'lib/tempest_time/commands/timer.rb', line 30 def delete(issue = nil) require_relative 'timer/delete' TempestTime::Commands::Timer::Delete.new(issue&.upcase).execute end |
#list ⇒ Object
42 43 44 45 |
# File 'lib/tempest_time/commands/timer.rb', line 42 def list require_relative 'timer/list' TempestTime::Commands::Timer::List.new.execute end |
#pause(issue = nil) ⇒ Object
18 19 20 21 |
# File 'lib/tempest_time/commands/timer.rb', line 18 def pause(issue = nil) require_relative 'timer/pause' TempestTime::Commands::Timer::Pause.new(issue&.upcase).execute end |
#start(issue = nil) ⇒ Object
12 13 14 15 |
# File 'lib/tempest_time/commands/timer.rb', line 12 def start(issue = nil) require_relative 'timer/start' TempestTime::Commands::Timer::Start.new(issue&.upcase).execute end |