lib/fog/azurerm.rb in fog-azure-rm-0.0.2 vs lib/fog/azurerm.rb in fog-azure-rm-0.0.3

- old
+ new

@@ -8,27 +8,27 @@ require 'fog/azurerm/resources' require 'fog/azurerm/storage' require 'fog/azurerm/network' require 'fog/azurerm/compute' - module Fog + # Main AzureRM fog Provider Module module AzureRM def self.services begin array_of_services = [] ENV['BUNDLE_GEM'] = File.expand_path('../../lib', File.dirname(__FILE__)) gem_path = ENV['BUNDLE_GEM'] - files = Dir.entries(File.join(gem_path,'/fog/azurerm')).select {|f| !File.directory? f} + files = Dir.entries(File.join(gem_path, '/fog/azurerm')).select { |f| !File.directory? f } files.each do |file| - next if file == "config.rb" - next if file == "core.rb" - next if file == "credentials.rb" - next if file == "docs" - next if file == "models" - next if file == "requests" - next if file == "version.rb" - array_of_services.push((file.split(".").first).upcase) + next if file == 'config.rb' + next if file == 'core.rb' + next if file == 'credentials.rb' + next if file == 'docs' + next if file == 'models' + next if file == 'requests' + next if file == 'version.rb' + array_of_services.push(file.split('.').first.upcase) end array_of_services rescue => e Fog::Logger.warning(e.message) raise e.message