Sha256: 611bca8042995e4649c26b6928949207e507fa76f5f021a3766d560dd3a17731

Contents?: true

Size: 864 Bytes

Versions: 1

Compression:

Stored size: 864 Bytes

Contents

require 'foreman_templates/engine'

module ForemanTemplates
  BASE_SETTING_NAMES = %w(repo branch dirname filter negate).freeze
  IMPORT_SETTING_NAMES = (BASE_SETTING_NAMES | %w(prefix associate force lock)).freeze
  EXPORT_SETTING_NAMES = (BASE_SETTING_NAMES | %w(metadata_export_mode commit_msg)).freeze

  def self.associate_types
    { 'always' => _('Always'), 'new' => _('New'), 'never' => _('Never') }
  end

  def self.lock_types
    { 'lock' => _('Lock'), 'keep_lock_new' => _('Keep, lock new'), 'keep' => _('Keep, do not lock new'), 'unlock' => _('Unlock') }
  end

  def self.metadata_export_mode_types
    { 'refresh' => _('Refresh'), 'keep' => _('Keep'), 'remove' => _('Remove') }
  end

  def self.http_proxy_policy_types
    { 'global' => _('Global default HTTP proxy'), 'none' => _('No HTTP proxy'), 'selected' => _('Custom HTTP proxy') }
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
foreman_templates-10.0.3 lib/foreman_templates.rb