Class: ForemanDeployments::Configuration
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- ForemanDeployments::Configuration
- Defined in:
- app/models/foreman_deployments/configuration.rb
Instance Method Summary collapse
Methods inherited from ActiveRecord::Base
Instance Method Details
#default_description ⇒ Object
10 11 12 13 14 15 16 |
# File 'app/models/foreman_deployments/configuration.rb', line 10 def default_description if !deployment.nil? _('Configuration for %s') % deployment.name elsif !stack.nil? _('Saved configuration for %s') % stack.name end end |
#get_config_for(task) ⇒ Object
22 23 24 |
# File 'app/models/foreman_deployments/configuration.rb', line 22 def get_config_for(task) values[task.task_id] || {} end |
#set_config_for(task, config) ⇒ Object
18 19 20 |
# File 'app/models/foreman_deployments/configuration.rb', line 18 def set_config_for(task, config) values[task.task_id] = (config || {}) end |