Module: Luban::Deployment::Parameters::Application
- Extended by:
- Base
- Included in:
- Application, Luban::Deployment::Package::Base, Worker::Base
- Defined in:
- lib/luban/deployment/parameters.rb
Constant Summary collapse
- DefaultLogrotateMaxAge =
days
7
- DefaultLogrotateInterval =
mins
10
Instance Method Summary collapse
Methods included from Base
Instance Method Details
#env_name ⇒ Object
120 121 122 |
# File 'lib/luban/deployment/parameters.rb', line 120 def env_name @env_name ||= "#{stage}.#{project}/#{application}" end |
#logrotate_count ⇒ Object
132 133 134 |
# File 'lib/luban/deployment/parameters.rb', line 132 def logrotate_count logrotate_max_age * 24 * (60 / logrotate_interval) end |
#monitor_itself? ⇒ Boolean
124 125 126 |
# File 'lib/luban/deployment/parameters.rb', line 124 def monitor_itself? env_name == process_monitor[:env] end |
#monitorable? ⇒ Boolean
128 129 130 |
# File 'lib/luban/deployment/parameters.rb', line 128 def monitorable? monitor_defined? and !monitor_itself? end |