Class: Ogre::OrgList

Inherits:
Base
  • Object
show all
Includes:
Thor::Actions
Defined in:
lib/ogre/org-list.rb

Overview

List organizations through Chef::REST object

Instance Method Summary collapse

Methods inherited from Base

#chef_rest

Instance Method Details

#org_listObject

Organizations list



7
8
9
10
11
# 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