summaryrefslogtreecommitdiff
path: root/lib/chef/org.rb
diff options
context:
space:
mode:
authorSteven Danna <steve@opscode.com>2014-12-02 12:25:44 +0000
committerLamont Granquist <lamont@scriptkiddie.org>2015-01-25 14:06:51 -0800
commit73b76328d81f43575eeca5bf8574f0644cfab710 (patch)
tree8214cec08efab333db20c94bee5aa537499594b8 /lib/chef/org.rb
parent875b90d97a5c65efbda7853b4db25c18e808bd61 (diff)
downloadchef-73b76328d81f43575eeca5bf8574f0644cfab710.tar.gz
Remove Org#add_user_to_group function
This functionality should be in a Chef::Group class.
Diffstat (limited to 'lib/chef/org.rb')
-rw-r--r--lib/chef/org.rb12
1 files changed, 0 insertions, 12 deletions
diff --git a/lib/chef/org.rb b/lib/chef/org.rb
index bbc4263835..9a4f7d93ac 100644
--- a/lib/chef/org.rb
+++ b/lib/chef/org.rb
@@ -93,18 +93,6 @@ class Chef
chef_rest.delete_rest "organizations/#{name}/users/#{username}"
end
- def add_user_to_group(groupname, username)
- group = chef_rest.get_rest "organizations/#{name}/groups/#{groupname}"
- body_hash = {
- :groupname => "#{groupname}",
- :actors => {
- "users" => group["actors"].concat([username]),
- "groups" => group["groups"]
- }
- }
- chef_rest.put_rest "organizations/#{name}/groups/#{groupname}", body_hash
- end
-
# Class methods
def self.from_hash(org_hash)
org = Chef::Org.new