Class: Autorespawn::Self
- Inherits:
-
Slave
- Object
- Slave
- Autorespawn::Self
show all
- Defined in:
- lib/autorespawn/self.rb
Overview
A Slave-compatible object that represents the manager’s process itself
Instance Attribute Summary
Attributes inherited from Slave
#cmdline, #name, #pid, #program_id, #result_buffer, #result_r, #spawn_env, #spawn_options, #status, #subcommands
Instance Method Summary
collapse
Methods inherited from Slave
#finished, #inspect, #read_queued_result, #register_files, #success?, #to_s
Constructor Details
#initialize(*args, **options) ⇒ Self
Returns a new instance of Self.
4
5
6
7
8
|
# File 'lib/autorespawn/self.rb', line 4
def initialize(*args, **options)
super
@pid = Process.pid
end
|
Instance Method Details
#finished? ⇒ Boolean
21
22
23
|
# File 'lib/autorespawn/self.rb', line 21
def finished?
false
end
|
#join ⇒ Object
16
17
|
# File 'lib/autorespawn/self.rb', line 16
def join
end
|
#kill ⇒ Object
14
15
|
# File 'lib/autorespawn/self.rb', line 14
def kill
end
|
#needs_spawn? ⇒ Boolean
10
|
# File 'lib/autorespawn/self.rb', line 10
def needs_spawn?; false end
|
#running? ⇒ Boolean
18
19
20
|
# File 'lib/autorespawn/self.rb', line 18
def running?
true
end
|
#spawn ⇒ Object
11
12
13
|
# File 'lib/autorespawn/self.rb', line 11
def spawn
pid
end
|