adamhjk (owner)

Forks

Revisions

gist: 184034 Download_button fork
public
Public Clone URL: git://gist.github.com/184034.git
Embed All Files: show embed
role_list.rb #
1
2
3
r = Chef::REST.new(Chef::Config[:chef_server_url])
roles = r.get_rest("roles").collect { |nr| nr.gsub(/^.+\/(.+)$/) }