Sha256: 4d72f0ce334fc9357619eeeca4240a3c5ca8e8570bfdd88e1778118b19e4e5d9
Contents?: true
Size: 654 Bytes
Versions: 39
Compression:
Stored size: 654 Bytes
Contents
module Fog module Rackspace class AutoScale class Real def delete_policy(group_id, policy_id) request( :expects => [204], :method => 'DELETE', :path => "groups/#{group_id}/policies/#{policy_id}" ) end end class Mock def delete_group(group_id, policy_id) group = self.data[:autoscale_groups][group_id] if group.nil? raise Fog::Rackspace::AutoScale::NotFound end group['policies'].delete_if { |p| p['id'] == policy_id } response(:status => 204) end end end end end
Version data entries
39 entries across 37 versions & 6 rubygems