Class: Gleis::CLI::Scheduler

Inherits:
Thor
  • Object
show all
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(options[:app], options[:frequency], options[:time], command)
end

#listObject



17
18
19
# File 'lib/gleis/cli/scheduler.rb', line 17

def list
  Gleis::Scheduler.list(options[:app])
end

#removeObject



22
23
24
# File 'lib/gleis/cli/scheduler.rb', line 22

def remove
  Gleis::Scheduler.remove(options[:app])
end