Class: FlossFunding::AtExitLockfile

Inherits:
LockfileBase show all
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

#path

Instance Method Summary collapse

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_filenameObject



294
295
296
# File 'lib/floss_funding/lockfile.rb', line 294

def default_filename
  ".floss_funding.ruby.at_exit.lock"
end

#env_seconds_keyObject



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_typeObject



298
299
300
# File 'lib/floss_funding/lockfile.rb', line 298

def lock_type
  "at_exit"
end

#max_default_secondsObject



302
303
304
# File 'lib/floss_funding/lockfile.rb', line 302

def max_default_seconds
  2_400 # 40 minutes
end