1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00

Tag#destroy implemented

This commit is contained in:
Rodrigo Estebanez 2013-05-28 13:56:58 +02:00
parent 08fc2f1eac
commit 4b0ee24ea5
4 changed files with 15 additions and 4 deletions

View file

@ -138,6 +138,7 @@ module Fog
request :power_shutdown
request :undeploy
request :get_metadata
request :delete_metadata
class Mock

View file

@ -29,9 +29,7 @@ module Fog
has_up :vapp
def tags
@tags ||= Fog::Vcloud::Compute::Tags.
new( :service => service,
:href => href + '/metadata' )
Fog::Vcloud::Compute::Tags.new(:service => service, :href => href + '/metadata')
end
def computer_name

View file

@ -9,7 +9,9 @@ module Fog
attribute :key, :aliases => :Key
attribute :value, :aliases => :Value
def destroy
service.delete_metadata(href)
end
end
end
end

View file

@ -0,0 +1,10 @@
module Fog
module Vcloud
class Compute
class Real
basic_request :delete_metadata, 202, "DELETE"
end
end
end
end