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 :undeploy
|
||||
request :get_metadata
|
||||
request :delete_metadata
|
||||
|
||||
class Mock
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -9,7 +9,9 @@ module Fog
|
|||
attribute :key, :aliases => :Key
|
||||
attribute :value, :aliases => :Value
|
||||
|
||||
|
||||
def destroy
|
||||
service.delete_metadata(href)
|
||||
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…
Reference in a new issue