Class: FlossFunding::AtExitLockfile
- Inherits:
-
LockfileBase
- Object
- LockfileBase
- FlossFunding::AtExitLockfile
- Defined in:
- lib/floss_funding/lockfile.rb
Overview
Lockfile that records at_exit nags (featured info cards rendered at exit)
Constant Summary
Constants inherited from LockfileBase
LockfileBase::MAX_SECONDS, LockfileBase::MIN_SECONDS
Instance Attribute Summary
Attributes inherited from LockfileBase
Instance Method Summary collapse
-
#default_filename ⇒ Object
-
#env_seconds_key ⇒ Object
-
#lock_type ⇒ Object
-
#max_default_seconds ⇒ Object
Methods inherited from LockfileBase
#initialize, #nagged?, #record_nag, #rotate_if_expired!, #touch!
Constructor Details
This class inherits a constructor from FlossFunding::LockfileBase
Instance Method Details
#default_filename ⇒ Object
294 295 296 |
# File 'lib/floss_funding/lockfile.rb', line 294 def default_filename ".floss_funding.ruby.at_exit.lock" end |
#env_seconds_key ⇒ Object
306 307 308 |
# File 'lib/floss_funding/lockfile.rb', line 306 def env_seconds_key :FLOSS_CFG_FUNDING_AT_EXIT_SEC_PER_NAG_MAX end |
#lock_type ⇒ Object
298 299 300 |
# File 'lib/floss_funding/lockfile.rb', line 298 def lock_type "at_exit" end |
#max_default_seconds ⇒ Object
302 303 304 |
# File 'lib/floss_funding/lockfile.rb', line 302 def max_default_seconds 2_400 # 40 minutes end |