1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00
fog--fog/lib/fog/openstack/requests/planning/delete_plan.rb
Petr Blaho de93719cd9 Adds create_plan and delete_plan requests
Adds following to Planning service of OpenStack:
 * create_plan and delete_plan requests
 * tests for create_plan and delete_plan requests
2015-03-16 14:34:11 +01:00

23 lines
554 B
Ruby

module Fog
module Openstack
class Planning
class Real
def delete_plan(plan_uuid)
request(
:expects => [204],
:method => 'DELETE',
:path => "plans/#{plan_uuid}"
)
end
end # class Real
class Mock
def delete_plan(plan_uuid)
response = Excon::Response.new
response.status = [204][rand(1)]
response
end # def delete_plans
end # class Mock
end # class Planning
end # module Openstack
end # module Fog