Class: Chef::Knife::JobList

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

Instance Method Summary collapse

Instance Method Details

#runObject



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

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

  jobs = rest.get_rest("pushy/jobs")
  output(jobs)
end