Module: ForemanTemplates

Defined in:
lib/foreman_templates.rb,
lib/foreman_templates/engine.rb,
lib/foreman_templates/version.rb,
app/services/foreman_templates/action.rb,
app/services/foreman_templates/cleaner.rb,
app/services/foreman_templates/parse_result.rb,
app/services/foreman_templates/export_result.rb,
app/services/foreman_templates/template_exporter.rb,
app/services/foreman_templates/template_importer.rb,
app/services/foreman_templates/path_access_exception.rb,
app/models/concerns/foreman_templates/template_extensions.rb

Defined Under Namespace

Modules: TemplateExtensions Classes: Action, Cleaner, Engine, ExportResult, ParseResult, PathAccessException, TemplateExporter, TemplateImporter

Constant Summary collapse

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
VERSION =
"10.0.2".freeze

Class Method Summary collapse

Class Method Details

.associate_typesObject



8
9
10
# File 'lib/foreman_templates.rb', line 8

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

.lock_typesObject



12
13
14
# File 'lib/foreman_templates.rb', line 12

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

.metadata_export_mode_typesObject



16
17
18
# File 'lib/foreman_templates.rb', line 16

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