class Schked::CLI
Public Class Methods
exit_on_failure?()
click to toggle source
# File lib/schked/cli.rb, line 21 def self.exit_on_failure? true end
start(argv)
click to toggle source
Calls superclass method
# File lib/schked/cli.rb, line 8 def self.start(argv) if File.exist?(".schked") argv += File .read(".schked") .split("\n") .join(" ") .strip .shellsplit end super(argv) end
Public Instance Methods
show()
click to toggle source
# File lib/schked/cli.rb, line 37 def show load_requires puts "=====" puts Schked.worker.schedule puts "=====" end
start()
click to toggle source
# File lib/schked/cli.rb, line 29 def start load_requires Schked.worker.wait end
Private Instance Methods
load_requires()
click to toggle source
# File lib/schked/cli.rb, line 47 def load_requires if options[:require]&.any? options[:require].each { |file| load(File.join(Dir.pwd, file)) } end # We have to load Schked at here, because of Rails and our railtie. require "schked" end