Method: Qspec::Config#initialize

Defined in:
lib/qspec/config.rb

#initialize(path = DEFAULT_PATH) ⇒ Config

Returns a new instance of Config.



7
8
9
10
11
12
13
14
15
# File 'lib/qspec/config.rb', line 7

def initialize(path = DEFAULT_PATH)
  @path = path
  if File.exists?(path)
    @config = YAML.load_file(path)
  else
    STDERR.puts "You do not have #{path}.  Initialize with `qspec-helper init`"
    exit 1
  end
end