Sha256: 735d0acc473cbe059bd00ce09e99866e1b725cf9210601783dfcc507abc947d9

Contents?: true

Size: 940 Bytes

Versions: 46

Compression:

Stored size: 940 Bytes

Contents

module Fog
  module Resources
    class AzureRM
      # This class provides the actual implementation for service calls.
      class Real
        def check_deployment_exists(resource_group_name, deployment_name)
          msg = "Checking Deployment #{deployment_name}"
          Fog::Logger.debug msg
          begin
            flag = @rmc.deployments.check_existence(resource_group_name, deployment_name)
            if flag
              Fog::Logger.debug "Deployment #{deployment_name} exists."
            else
              Fog::Logger.debug "Deployment #{deployment_name} doesn't exist."
            end
            flag
          rescue MsRestAzure::AzureOperationError => e
            raise_azure_exception(e, msg)
          end
        end
      end
      # This class provides the mock implementation for unit tests.
      class Mock
        def check_deployment_exists(*)
          true
        end
      end
    end
  end
end

Version data entries

46 entries across 46 versions & 4 rubygems

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