Class: AnswersEngine::CLI::Job
- Inherits:
-
Thor
- Object
- Thor
- AnswersEngine::CLI::Job
- Defined in:
- lib/answersengine/cli/job.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.banner(command, namespace = nil, subcommand = false) ⇒ Object
5 6 7 |
# File 'lib/answersengine/cli/job.rb', line 5 def self.(command, namespace = nil, subcommand = false) "#{basename} #{@package_name} #{command.usage}" end |
Instance Method Details
#list ⇒ Object
16 17 18 19 |
# File 'lib/answersengine/cli/job.rb', line 16 def list() client = Client::Job.new() puts "#{client.all()}" end |
#show(job_id) ⇒ Object
22 23 24 25 |
# File 'lib/answersengine/cli/job.rb', line 22 def show(job_id) client = Client::Job.new() puts "#{client.find(job_id)}" end |