Method: CORL::Plugin::Network#normalize

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

#normalize(reload) ⇒ Object


Cloud plugin interface



11
12
13
14
15
16
17
18
19
20
21
22
23
# File 'lib/core/plugin/network.rb', line 11

def normalize(reload)
  super
  
  logger.info("Initializing network: reloading? #{reload}")
  myself.config = CORL.configuration(Config.new(myself._export).import({ :autosave => false, :create => false })) unless reload
  
  config.delete(:directory) # TODO: Figure out what to do with this??
  
  unless reload
    @build = Build.new
    ignore([ 'build', File.join('config', 'identities') ])
  end
end