lib/runcible/resources/role.rb in runcible-0.1.1 vs lib/runcible/resources/role.rb in runcible-0.1.2

- old
+ new

@@ -1,6 +1,6 @@ -# Copyright (c) 2012 Eric D Helms +# Copyright (c) 2012 Red Hat # # MIT License # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the @@ -30,14 +30,14 @@ (role == nil) ? "roles/" : "roles/#{role}/" end def self.add(id, login) required = required_params(binding.send(:local_variables), binding, ["id"]) - call(:post, "#{path(id)}/users/", :payload => { :required => required }) + call(:post, "#{path(id)}users/", :payload => { :required => required }) end def self.remove(id, login) - call(:delete, "#{path(id)}/users/#{login}/") + call(:delete, "#{path(id)}users/#{login}/") end end end end