class ConfigReader

class ConfigReader

Just read a json file

Public Class Methods

new(file) click to toggle source
# File lib/config_reader.rb, line 9
def initialize(file)
  @config_file = file
end

Public Instance Methods

extract_flags() click to toggle source
# File lib/config_reader.rb, line 13
def extract_flags
  abort_on_err("config file #{@config_file} does not exsit") unless File.exist? @config_file
  JSON.parse(File.read(@config_file))
end