Class: ForemanExpireHosts::Action::Base

Inherits:
Object
  • Object
show all
Defined in:
app/services/foreman_expire_hosts/action/base.rb

Direct Known Subclasses

DeleteExpiredHosts, StopExpiredHosts

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeBase

Returns a new instance of Base.



8
9
10
11
# File 'app/services/foreman_expire_hosts/action/base.rb', line 8

def initialize
  self.successful_hosts = []
  self.failed_hosts = []
end

Instance Attribute Details

#failed_hostsObject

Returns the value of attribute failed_hosts.



6
7
8
# File 'app/services/foreman_expire_hosts/action/base.rb', line 6

def failed_hosts
  @failed_hosts
end

#successful_hostsObject

Returns the value of attribute successful_hosts.



6
7
8
# File 'app/services/foreman_expire_hosts/action/base.rb', line 6

def successful_hosts
  @successful_hosts
end

Instance Method Details

#engageObject



13
14
15
16
# File 'app/services/foreman_expire_hosts/action/base.rb', line 13

def engage
  process
  notify
end