Class: Datahen::CLI::Job

Inherits:
Thor
  • Object
show all
Defined in:
lib/datahen/cli/job.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details



5
6
7
# File 'lib/datahen/cli/job.rb', line 5

def self.banner(command, namespace = nil, subcommand = false)
  "#{basename} #{@package_name} #{command.usage}"
end

Instance Method Details

#listObject



16
17
18
19
# File 'lib/datahen/cli/job.rb', line 16

def list()
  client = Client::Job.new(options)
  puts "#{client.all()}"
end

#show(job_id) ⇒ Object



23
24
25
26
# File 'lib/datahen/cli/job.rb', line 23

def show(job_id)
  client = Client::Job.new(options)
  puts "#{client.find(job_id, options)}"
end

#stats(job_id) ⇒ Object



33
34
35
36
# File 'lib/datahen/cli/job.rb', line 33

def stats(job_id)
  client = Client::JobStat.new(options)
  puts "#{client.job_current_stats(job_id, options)}"
end