Module: Textus::Jobs

Defined in:
lib/textus/jobs.rb

Class Method Summary collapse

Class Method Details

.fetch(type) ⇒ Object



3
4
5
6
7
# File 'lib/textus/jobs.rb', line 3

def self.fetch(type)
  Store::Jobs::Registry.fetch(type)
rescue Store::Jobs::Registry::UnknownJob
  raise Textus::UsageError.new("unknown job type: #{type}")
end