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
29 30 31 32 |
# File 'lib/tempest_time/commands/timer.rb', line 29 def delete(issue = nil) require_relative 'timer/delete' TempestTime::Commands::Timer::Delete.new(issue&.upcase).execute end |
#list ⇒ Object
41 42 43 44 |
# File 'lib/tempest_time/commands/timer.rb', line 41 def list require_relative 'timer/list' TempestTime::Commands::Timer::List.new.execute end |
#pause(issue = nil) ⇒ Object
17 18 19 20 |
# File 'lib/tempest_time/commands/timer.rb', line 17 def pause(issue = nil) require_relative 'timer/pause' TempestTime::Commands::Timer::Pause.new(issue&.upcase).execute end |
#start(issue = nil) ⇒ Object
11 12 13 14 |
# File 'lib/tempest_time/commands/timer.rb', line 11 def start(issue = nil) require_relative 'timer/start' TempestTime::Commands::Timer::Start.new(issue&.upcase).execute end |