Sha256: fc1e8a226d5a6e10927006654fb972338e8c9d4c9604ffc7cbb1eb6554439c66

Contents?: true

Size: 662 Bytes

Versions: 8

Compression:

Stored size: 662 Bytes

Contents

module Fog
  module Storage
    class AzureRM
      # This class provides the actual implemention for service calls.
      class Real
        # Get a public blob url from Azure blob storage
        # This is to make this library compatible with CarrierWave.
        def get_object_url(container_name, blob_name, expires)
          get_blob_https_url(container_name, blob_name, expires)
        end
      end

      # This class provides the mock implementation for unit tests.
      class Mock
        def get_object_url(container_name, blob_name, expires)
          get_blob_https_url(container_name, blob_name, expires)
        end
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
gitlab-fog-azure-rm-1.1.1 lib/fog/azurerm/requests/storage/get_object_url.rb
gitlab-fog-azure-rm-1.0.1 lib/fog/azurerm/requests/storage/get_object_url.rb
gitlab-fog-azure-rm-1.0.0 lib/fog/azurerm/requests/storage/get_object_url.rb
gitlab-fog-azure-rm-0.9.0 lib/fog/azurerm/requests/storage/get_object_url.rb
gitlab-fog-azure-rm-0.8.1 lib/fog/azurerm/requests/storage/get_object_url.rb
gitlab-fog-azure-rm-0.8.0 lib/fog/azurerm/requests/storage/get_object_url.rb
gitlab-fog-azure-rm-0.7.0 lib/fog/azurerm/requests/storage/get_object_url.rb
gitlab-fog-azure-rm-0.6.0 lib/fog/azurerm/requests/storage/get_object_url.rb