Exception: Caesars::Config::ForceRefresh

Inherits:
RuntimeError
  • Object
show all
Defined in:
lib/caesars/config.rb

Overview

Used by postprocess to tell refresh to reload all configs.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(*glasses) ⇒ ForceRefresh

Returns a new instance of ForceRefresh.



27
# File 'lib/caesars/config.rb', line 27

def initialize(*glasses); @glasses = glasses; end

Instance Attribute Details

#glassesObject (readonly)

The list of config types that need to be refreshed. This is currently for informational-purposes only. It does not affect which files/config types are refreshed. See Caesars::Config::ForcedRefresh



26
27
28
# File 'lib/caesars/config.rb', line 26

def glasses
  @glasses
end

Instance Method Details

#messageObject



28
# File 'lib/caesars/config.rb', line 28

def message; "Force refresh of: #{@glasses.join(',')}"; end