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:
parent
08fc2f1eac
commit
4b0ee24ea5
4 changed files with 15 additions and 4 deletions
|
@ -138,6 +138,7 @@ module Fog
|
||||||
request :power_shutdown
|
request :power_shutdown
|
||||||
request :undeploy
|
request :undeploy
|
||||||
request :get_metadata
|
request :get_metadata
|
||||||
|
request :delete_metadata
|
||||||
|
|
||||||
class Mock
|
class Mock
|
||||||
|
|
||||||
|
|
|
@ -29,9 +29,7 @@ module Fog
|
||||||
has_up :vapp
|
has_up :vapp
|
||||||
|
|
||||||
def tags
|
def tags
|
||||||
@tags ||= Fog::Vcloud::Compute::Tags.
|
Fog::Vcloud::Compute::Tags.new(:service => service, :href => href + '/metadata')
|
||||||
new( :service => service,
|
|
||||||
:href => href + '/metadata' )
|
|
||||||
end
|
end
|
||||||
|
|
||||||
def computer_name
|
def computer_name
|
||||||
|
|
|
@ -9,7 +9,9 @@ module Fog
|
||||||
attribute :key, :aliases => :Key
|
attribute :key, :aliases => :Key
|
||||||
attribute :value, :aliases => :Value
|
attribute :value, :aliases => :Value
|
||||||
|
|
||||||
|
def destroy
|
||||||
|
service.delete_metadata(href)
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
10
lib/fog/vcloud/requests/compute/delete_metadata.rb
Normal file
10
lib/fog/vcloud/requests/compute/delete_metadata.rb
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
module Fog
|
||||||
|
module Vcloud
|
||||||
|
class Compute
|
||||||
|
|
||||||
|
class Real
|
||||||
|
basic_request :delete_metadata, 202, "DELETE"
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
Loading…
Add table
Reference in a new issue