lib/fog/azurerm/storage.rb in gitlab-fog-azure-rm-0.6.0 vs lib/fog/azurerm/storage.rb in gitlab-fog-azure-rm-0.7.0
- old
+ new
@@ -13,13 +13,10 @@
recognizes :azure_storage_account_name
recognizes :azure_storage_access_key
recognizes :debug
request_path 'fog/azurerm/requests/storage'
- # Azure Storage Disk requests
- request :delete_disk
- request :create_disk
# Azure Storage Container requests
request :create_container
request :release_container_lease
request :acquire_container_lease
request :delete_container
@@ -68,11 +65,10 @@
# This class provides the mock implementation for unit tests.
class Mock
def initialize(_options = {})
begin
- require 'azure_mgmt_storage'
require 'azure/storage'
rescue LoadError => e
retry if require('rubygems')
raise e.message
end
@@ -81,13 +77,11 @@
# This class provides the actual implementation for service calls.
class Real
def initialize(options)
begin
- require 'azure_mgmt_storage'
require 'azure/storage'
require 'securerandom'
- require 'vhd'
@debug = ENV['DEBUG'] || options[:debug]
require 'azure/core/http/debug_filter' if @debug
rescue LoadError => e
retry if require('rubygems')
raise e.message