Sha256: 59448e2d1ff99af05f584a366f90f3cd8ded3c80842f60e6ce8ffae33d9c0120

Contents?: true

Size: 636 Bytes

Versions: 14

Compression:

Stored size: 636 Bytes

Contents

module AzureComputeResourceHelper
  def regions_list(azurerm_cr, f)
    begin
      regions = azurerm_cr.regions || []
    rescue StandardError
      #do nothing
      regions = []
    rescue Exception => ex
      return information_box("Regions could not be loaded due to exception: #{ex}")
    end
    selectable_f(f, :url, regions, {}, {:label => _('Azure Region'), :disabled => regions.empty?, :required => true, :help_inline_permanent => load_button_f(f, regions.present?, _("Load Regions")) })
  end
  def azure_doc_version
    doc_version = Foreman::Plugin.find(:foreman_azure_rm).version.scan(/\d+\.\d+/).first + '.x'
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
foreman_azure_rm-3.0.1 app/helpers/azure_compute_resource_helper.rb
foreman_azure_rm-3.0.0 app/helpers/azure_compute_resource_helper.rb
foreman_azure_rm-2.3.0 app/helpers/azure_compute_resource_helper.rb
foreman_azure_rm-2.2.11 app/helpers/azure_compute_resource_helper.rb
foreman_azure_rm-2.2.10 app/helpers/azure_compute_resource_helper.rb
foreman_azure_rm-2.2.9 app/helpers/azure_compute_resource_helper.rb
foreman_azure_rm-2.2.8 app/helpers/azure_compute_resource_helper.rb
foreman_azure_rm-2.2.7 app/helpers/azure_compute_resource_helper.rb
foreman_azure_rm-2.2.6 app/helpers/azure_compute_resource_helper.rb
foreman_azure_rm-2.2.5 app/helpers/azure_compute_resource_helper.rb
foreman_azure_rm-2.2.4 app/helpers/azure_compute_resource_helper.rb
foreman_azure_rm-2.2.3 app/helpers/azure_compute_resource_helper.rb
foreman_azure_rm-2.2.2 app/helpers/azure_compute_resource_helper.rb
foreman_azure_rm-2.2.1 app/helpers/azure_compute_resource_helper.rb