Class: AnsibleVariable
- Inherits:
-
LookupKey
- Object
- LookupKey
- AnsibleVariable
- 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
18 19 20 21 22 23 24 |
# File 'app/models/ansible_variable.rb', line 18 def self.humanize_class_name( = nil) if .present? super else "Ansible variable" end end |
Instance Method Details
#ansible? ⇒ Boolean
14 15 16 |
# File 'app/models/ansible_variable.rb', line 14 def ansible? true end |
#editable_by_user? ⇒ Boolean
26 27 28 29 |
# File 'app/models/ansible_variable.rb', line 26 def editable_by_user? AnsibleVariable.(:edit_ansible_variables). where(:id => id).exists? end |