Class: Rbg::Config

Inherits:
Object
  • Object
show all
Defined in:
lib/rbg/config.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#log_pathObject

Returns the value of attribute log_path.



9
10
11
# File 'lib/rbg/config.rb', line 9

def log_path
  @log_path
end

#loggerObject

Returns the value of attribute logger.



15
16
17
# File 'lib/rbg/config.rb', line 15

def logger
  @logger
end

#memory_limitObject

Returns the value of attribute memory_limit.



14
15
16
# File 'lib/rbg/config.rb', line 14

def memory_limit
  @memory_limit
end

#nameObject

Returns the value of attribute name.



6
7
8
# File 'lib/rbg/config.rb', line 6

def name
  @name
end

#pid_pathObject

Returns the value of attribute pid_path.



10
11
12
# File 'lib/rbg/config.rb', line 10

def pid_path
  @pid_path
end

#respawnObject

Returns the value of attribute respawn.



12
13
14
# File 'lib/rbg/config.rb', line 12

def respawn
  @respawn
end

#respawn_limitsObject

Returns the value of attribute respawn_limits.



13
14
15
# File 'lib/rbg/config.rb', line 13

def respawn_limits
  @respawn_limits
end

#rootObject

Returns the value of attribute root.



7
8
9
# File 'lib/rbg/config.rb', line 7

def root
  @root
end

#script(&block) ⇒ Object

Returns the value of attribute script.



8
9
10
# File 'lib/rbg/config.rb', line 8

def script
  @script
end

#workersObject

Returns the value of attribute workers.



11
12
13
# File 'lib/rbg/config.rb', line 11

def workers
  @workers
end

Instance Method Details

#after_fork(&block) ⇒ Object



49
50
51
# File 'lib/rbg/config.rb', line 49

def after_fork(&block)
  block_given? ? @after_fork = block : @after_fork
end

#before_fork(&block) ⇒ Object



45
46
47
# File 'lib/rbg/config.rb', line 45

def before_fork(&block)
  block_given? ? @before_fork = block : @before_fork
end