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.3".freeze
Class Method Summary
collapse
Class Method Details
.associate_types ⇒ Object
8
9
10
|
# File 'lib/foreman_templates.rb', line 8
def self.associate_types
{ 'always' => _('Always'), 'new' => _('New'), 'never' => _('Never') }
end
|
.http_proxy_policy_types ⇒ Object
20
21
22
|
# File 'lib/foreman_templates.rb', line 20
def self.http_proxy_policy_types
{ 'global' => _('Global default HTTP proxy'), 'none' => _('No HTTP proxy'), 'selected' => _('Custom HTTP proxy') }
end
|
.lock_types ⇒ Object
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
|
16
17
18
|
# File 'lib/foreman_templates.rb', line 16
def self.metadata_export_mode_types
{ 'refresh' => _('Refresh'), 'keep' => _('Keep'), 'remove' => _('Remove') }
end
|