Class: YamlProcessor

Inherits:
Object
  • Object
show all
Defined in:
lib/file_sv/yaml_processor.rb

Overview

Process YAML files

Class Method Summary collapse

Class Method Details

.process(filename) ⇒ Object

Process YAML file



7
8
9
10
11
12
13
14
# File 'lib/file_sv/yaml_processor.rb', line 7

def process(filename)
  if filename == "/file_sv.yaml"
    puts "Overriding default config based on #{File.join(Dir.pwd, filename[1..])}"
    load_default_config filename[1..]
  else
    puts "Skipping #{filename}"
  end
end