Class: Gleis::CLI::Scheduler
- Inherits:
-
Thor
- Object
- Thor
- Gleis::CLI::Scheduler
- Defined in:
- lib/gleis/cli/scheduler.rb
Overview
Add-ons-related CLI commands
Instance Method Summary collapse
Instance Method Details
#add(command) ⇒ Object
12 13 14 |
# File 'lib/gleis/cli/scheduler.rb', line 12 def add(command) Gleis::Scheduler.add([:app], [:frequency], [:time], command) end |
#list ⇒ Object
17 18 19 |
# File 'lib/gleis/cli/scheduler.rb', line 17 def list Gleis::Scheduler.list([:app]) end |
#remove ⇒ Object
22 23 24 |
# File 'lib/gleis/cli/scheduler.rb', line 22 def remove Gleis::Scheduler.remove([:app]) end |