Class: Ogre::UserList
- Includes:
- Thor::Actions
- Defined in:
- lib/ogre/user-list.rb
Overview
List users through Chef::REST object
Instance Method Summary collapse
-
#org_list ⇒ Object
Users list.
Methods inherited from Base
Instance Method Details
#org_list ⇒ Object
Users list
7 8 9 10 11 |
# File 'lib/ogre/user-list.rb', line 7 def org_list # pull down all users results = chef_rest.get('/users') puts results.keys.sort { |a, b| a <=> b } end |