Class: ForemanNetbox::SyncHostJob
- Inherits:
-
ApplicationJob
- Object
- ApplicationJob
- ForemanNetbox::SyncHostJob
- Defined in:
- app/jobs/foreman_netbox/sync_host_job.rb
Instance Method Summary collapse
Instance Method Details
#humanized_name ⇒ Object
15 16 17 |
# File 'app/jobs/foreman_netbox/sync_host_job.rb', line 15 def humanized_name _('Push host to Netbox') end |
#perform(host_id) ⇒ Object
7 8 9 |
# File 'app/jobs/foreman_netbox/sync_host_job.rb', line 7 def perform(host_id) Host::Managed.find(host_id)&.push_to_netbox end |