Sha256: 272113d8803bf21528594ff8d43551fe3ab314b42c5deab585a99b959fd454b5

Contents?: true

Size: 804 Bytes

Versions: 47

Compression:

Stored size: 804 Bytes

Contents

module Fog
  module Resources
    class AzureRM
      # This class provides the actual implementation for service calls.
      class Real
        def delete_resource_group(name)
          msg = "Deleting Resource Group: #{name}."
          Fog::Logger.debug msg
          begin
            @rmc.resource_groups.delete(name)
          rescue  MsRestAzure::AzureOperationError => e
            raise_azure_exception(e, msg)
          end
          Fog::Logger.debug "Resource Group #{name} deleted successfully."
          true
        end
      end

      # This class provides the mock implementation for unit tests.
      class Mock
        def delete_resource_group(name)
          Fog::Logger.debug "Resource Group #{name} deleted successfully."
          true
        end
      end
    end
  end
end

Version data entries

47 entries across 47 versions & 4 rubygems

Version Path
fog-azure-rm-0.6.0 lib/fog/azurerm/requests/resources/delete_resource_group.rb
fog-azure-rm-0.5.3 lib/fog/azurerm/requests/resources/delete_resource_group.rb
fog-azure-rm-0.5.2 lib/fog/azurerm/requests/resources/delete_resource_group.rb
far-gem-0.5.6 lib/fog/azurerm/requests/resources/delete_resource_group.rb
fog-azure-rm-0.5.1 lib/fog/azurerm/requests/resources/delete_resource_group.rb
far-gem-0.5.5 lib/fog/azurerm/requests/resources/delete_resource_group.rb
fog-azure-rm-0.5.0 lib/fog/azurerm/requests/resources/delete_resource_group.rb
far-gem-0.5.4 lib/fog/azurerm/requests/resources/delete_resource_group.rb
far-gem-0.5.3 lib/fog/azurerm/requests/resources/delete_resource_group.rb
fog-azure-rm-0.4.9 lib/fog/azurerm/requests/resources/delete_resource_group.rb
far-gem-0.5.2 lib/fog/azurerm/requests/resources/delete_resource_group.rb
fog-azure-rm-0.4.8 lib/fog/azurerm/requests/resources/delete_resource_group.rb
fog-azure-rm-0.4.7 lib/fog/azurerm/requests/resources/delete_resource_group.rb
fog-azure-rm-0.4.6 lib/fog/azurerm/requests/resources/delete_resource_group.rb
fog-azure-rm-0.4.5 lib/fog/azurerm/requests/resources/delete_resource_group.rb
fog-azure-rm-temp-0.0.5 lib/fog/azurerm/requests/resources/delete_resource_group.rb
fog-azure-rm-0.4.4 lib/fog/azurerm/requests/resources/delete_resource_group.rb
fog-azure-rm-0.4.3 lib/fog/azurerm/requests/resources/delete_resource_group.rb
far-gem-0.5.1 lib/fog/azurerm/requests/resources/delete_resource_group.rb
fog-azure-rm-0.4.2 lib/fog/azurerm/requests/resources/delete_resource_group.rb