Method: CM::Plugin::Plan#normalize

Defined in:
lib/core/plugin/plan.rb

#normalize(reload) ⇒ Object


Plugin interface



21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# File 'lib/core/plugin/plan.rb', line 21

def normalize(reload)
  super

  if !reload
    @loaded_config = CM.configuration(extended_config(:config_data, {
      :provider => _get(:config_provider, :directory),
      :path => config_path
    }))

    @tokens = CM.configuration(extended_config(:token_data, {
      :provider => _get(:token_provider, :file),
      :path => token_path
    }))

    yield if block_given?
  end
end