class Ogre::OrgList

List organizations through Chef::REST object

Public Instance Methods

org_list() click to toggle source

Organizations list

# File lib/ogre/org-list.rb, line 7
def org_list
  # pull down all orgs
  results = chef_rest.get('/organizations')
  puts results.keys.sort { |a, b| a <=> b }
end