Class: Chef::Knife::JobStatus

Inherits:
Chef::Knife show all
Defined in:
lib/chef/knife/job_status.rb

Instance Method Summary collapse

Instance Method Details

#runObject



23
24
25
26
27
28
29
# File 'lib/chef/knife/job_status.rb', line 23

def run
  rest = Chef::REST.new(Chef::Config[:chef_server_url])

  job_id = name_args[0]
  job = rest.get_rest("pushy/jobs/#{job_id}")
  output(job)
end