Class: AnsibleVariable
- Inherits:
-
LookupKey
- Object
- LookupKey
- AnsibleVariable
- Includes:
- Foreman::ObservableModel
- Defined in:
- app/models/ansible_variable.rb
Overview
Represents the variables used in Ansible to parameterize playbooks
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.humanize_class_name(options = nil) ⇒ Object
22 23 24 25 26 27 28 |
# File 'app/models/ansible_variable.rb', line 22 def self.humanize_class_name( = nil) if .present? super else "Ansible variable" end end |
Instance Method Details
#ansible? ⇒ Boolean
18 19 20 |
# File 'app/models/ansible_variable.rb', line 18 def ansible? true end |
#editable_by_user? ⇒ Boolean
30 31 32 33 |
# File 'app/models/ansible_variable.rb', line 30 def editable_by_user? AnsibleVariable.(:edit_ansible_variables). where(:id => id).exists? end |