Class: VmShepherd::Vcloud::Destroyer

Inherits:
Object
  • Object
show all
Defined in:
lib/vm_shepherd/vcloud/destroyer.rb

Instance Method Summary collapse

Constructor Details

#initialize(client:, vdc_name:) ⇒ Destroyer

Returns a new instance of Destroyer.



4
5
6
7
# File 'lib/vm_shepherd/vcloud/destroyer.rb', line 4

def initialize(client:, vdc_name:)
  @client = client
  @vdc_name = vdc_name
end

Instance Method Details

#clean_catalog_and_vapps(catalog:, vapp_names:, logger:) ⇒ Object



9
10
11
12
# File 'lib/vm_shepherd/vcloud/destroyer.rb', line 9

def clean_catalog_and_vapps(catalog:, vapp_names:, logger:)
  clean_vapps(vapp_names, logger)
  delete_catalog(catalog)
end