Module: ForemanDlm::HostExtensions
- Extended by:
- ActiveSupport::Concern
- Defined in:
- app/models/concerns/foreman_dlm/host_extensions.rb
Instance Method Summary collapse
Instance Method Details
#can_acquire_update_locks? ⇒ Boolean
24 25 26 27 28 29 |
# File 'app/models/concerns/foreman_dlm/host_extensions.rb', line 24 def can_acquire_update_locks? param = host_param('can_acquire_update_locks') return true if param.blank? Foreman::Cast.to_bool(param) end |
#refresh_dlmlock_status ⇒ Object
31 32 33 |
# File 'app/models/concerns/foreman_dlm/host_extensions.rb', line 31 def refresh_dlmlock_status refresh_statuses([HostStatus::DlmlockStatus]) end |