Class: FlossFunding::OnLoadLockfile

Inherits:
LockfileBase show all
Defined in:
lib/floss_funding/lockfile.rb

Overview

Lockfile that records on_load nags (during Poke/Inclusion time)

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



275
276
277
# File 'lib/floss_funding/lockfile.rb', line 275

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

#env_seconds_keyObject



287
288
289
# File 'lib/floss_funding/lockfile.rb', line 287

def env_seconds_key
  :FLOSS_CFG_FUNDING_ON_LOAD_SEC_PER_NAG_MAX
end

#lock_typeObject



279
280
281
# File 'lib/floss_funding/lockfile.rb', line 279

def lock_type
  "on_load"
end

#max_default_secondsObject



283
284
285
# File 'lib/floss_funding/lockfile.rb', line 283

def max_default_seconds
  86_400 # 24 hours
end