Class: CM::Configuration::File

Inherits:
Object
  • Object
show all
Defined in:
lib/CM/configuration/file.rb

Instance Method Summary collapse

Instance Method Details

#normalize(reload) ⇒ Object


Plugin interface



9
10
11
12
# File 'lib/CM/configuration/file.rb', line 9

def normalize(reload)
  super
  yield if block_given?
end

#parse(wipe = true) ⇒ Object


Operations



23
24
25
26
27
# File 'lib/CM/configuration/file.rb', line 23

def parse(wipe = true)
  super do
    import_file(path)
  end
end

#saveObject




31
32
33
34
35
# File 'lib/CM/configuration/file.rb', line 31

def save
  super do
    save_config(path, export)
  end
end