Class: Navy::Rank

Inherits:
Object
  • Object
show all
Defined in:
lib/navy/rank.rb

Direct Known Subclasses

Admiral, Captain, Officer

Instance Attribute Summary collapse

Instance Attribute Details

#after_forkObject

callbacks ##



7
8
9
# File 'lib/navy/rank.rb', line 7

def after_fork
  @after_fork
end

#after_stopObject

callbacks ##



7
8
9
# File 'lib/navy/rank.rb', line 7

def after_stop
  @after_stop
end

#before_forkObject

callbacks ##



7
8
9
# File 'lib/navy/rank.rb', line 7

def before_fork
  @before_fork
end

#before_stopObject

callbacks ##



7
8
9
# File 'lib/navy/rank.rb', line 7

def before_stop
  @before_stop
end

#current_stderrObject

Returns the value of attribute current_stderr.



22
23
24
# File 'lib/navy/rank.rb', line 22

def current_stderr
  @current_stderr
end

#current_stdoutObject

Returns the value of attribute current_stdout.



22
23
24
# File 'lib/navy/rank.rb', line 22

def current_stdout
  @current_stdout
end

#heartbeatObject

callbacks ##



7
8
9
# File 'lib/navy/rank.rb', line 7

def heartbeat
  @heartbeat
end

#loggerObject



27
28
29
30
31
# File 'lib/navy/rank.rb', line 27

def logger
  (@logger ||= orders[:logger]).tap do |log|
    log.scope = self #if log.respond_to?(:scope=)
  end
end

#optionsObject (readonly)

Returns the value of attribute options.



34
35
36
# File 'lib/navy/rank.rb', line 34

def options
  @options
end

#ordersObject

orders are configuration settings



4
5
6
# File 'lib/navy/rank.rb', line 4

def orders
  @orders
end

#orig_stderrObject

Returns the value of attribute orig_stderr.



22
23
24
# File 'lib/navy/rank.rb', line 22

def orig_stderr
  @orig_stderr
end

#orig_stdoutObject

Returns the value of attribute orig_stdout.



22
23
24
# File 'lib/navy/rank.rb', line 22

def orig_stdout
  @orig_stdout
end

#patienceObject

timeouts ##



25
26
27
# File 'lib/navy/rank.rb', line 25

def patience
  @patience
end

#pidObject

Returns the value of attribute pid.



65
66
67
# File 'lib/navy/rank.rb', line 65

def pid
  @pid
end

#post_forkObject

callbacks ##



7
8
9
# File 'lib/navy/rank.rb', line 7

def post_fork
  @post_fork
end

#preloadObject

Returns the value of attribute preload.



67
68
69
# File 'lib/navy/rank.rb', line 67

def preload
  @preload
end

#reexec_pidObject

reexec ##



15
16
17
# File 'lib/navy/rank.rb', line 15

def reexec_pid
  @reexec_pid
end

#respawn_limitObject

respawn ##



18
19
20
# File 'lib/navy/rank.rb', line 18

def respawn_limit
  @respawn_limit
end

#respawn_limit_secondsObject

respawn ##



18
19
20
# File 'lib/navy/rank.rb', line 18

def respawn_limit_seconds
  @respawn_limit_seconds
end

#stderr_pathObject

stderr/stdout ##



21
22
23
# File 'lib/navy/rank.rb', line 21

def stderr_path
  @stderr_path
end

#stdout_pathObject

stderr/stdout ##



21
22
23
# File 'lib/navy/rank.rb', line 21

def stdout_path
  @stdout_path
end

#timeoutObject

timeouts ##



25
26
27
# File 'lib/navy/rank.rb', line 25

def timeout
  @timeout
end