Class: Rbg::Config
- Inherits:
-
Object
- Object
- Rbg::Config
- Defined in:
- lib/rbg/config.rb
Instance Attribute Summary collapse
-
#log_path ⇒ Object
Returns the value of attribute log_path.
-
#logger ⇒ Object
Returns the value of attribute logger.
-
#memory_limit ⇒ Object
Returns the value of attribute memory_limit.
-
#name ⇒ Object
Returns the value of attribute name.
-
#pid_path ⇒ Object
Returns the value of attribute pid_path.
-
#respawn ⇒ Object
Returns the value of attribute respawn.
-
#respawn_limits ⇒ Object
Returns the value of attribute respawn_limits.
-
#root ⇒ Object
Returns the value of attribute root.
-
#script(&block) ⇒ Object
Returns the value of attribute script.
-
#workers ⇒ Object
Returns the value of attribute workers.
Instance Method Summary collapse
Instance Attribute Details
#log_path ⇒ Object
Returns the value of attribute log_path.
9 10 11 |
# File 'lib/rbg/config.rb', line 9 def log_path @log_path end |
#logger ⇒ Object
Returns the value of attribute logger.
15 16 17 |
# File 'lib/rbg/config.rb', line 15 def logger @logger end |
#memory_limit ⇒ Object
Returns the value of attribute memory_limit.
14 15 16 |
# File 'lib/rbg/config.rb', line 14 def memory_limit @memory_limit end |
#name ⇒ Object
Returns the value of attribute name.
6 7 8 |
# File 'lib/rbg/config.rb', line 6 def name @name end |
#pid_path ⇒ Object
Returns the value of attribute pid_path.
10 11 12 |
# File 'lib/rbg/config.rb', line 10 def pid_path @pid_path end |
#respawn ⇒ Object
Returns the value of attribute respawn.
12 13 14 |
# File 'lib/rbg/config.rb', line 12 def respawn @respawn end |
#respawn_limits ⇒ Object
Returns the value of attribute respawn_limits.
13 14 15 |
# File 'lib/rbg/config.rb', line 13 def respawn_limits @respawn_limits end |
#root ⇒ Object
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 |
#workers ⇒ Object
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 |