Module: Fog::AzureRM
- Extended by:
- Provider
- Defined in:
- lib/fog/azurerm.rb,
lib/fog/azurerm/core.rb,
lib/fog/azurerm/version.rb
Overview
This module registers available services
Constant Summary collapse
- VERSION =
'0.0.4'.freeze
Class Method Summary collapse
Class Method Details
.services ⇒ Object
17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 |
# File 'lib/fog/azurerm.rb', line 17 def self.services begin array_of_services = [] ENV['BUNDLE_GEM'] = File.('../../lib', File.dirname(__FILE__)) gem_path = ENV['BUNDLE_GEM'] 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) end array_of_services rescue => e Fog::Logger.warning(e.) raise e. # typically occurs if folder_to_count does not exist end end |