Class: Postrocktues::Config

Inherits:
OpenStruct
  • Object
show all
Defined in:
lib/postrocktues/config.rb

Defined Under Namespace

Classes: FileNotFound

Class Method Summary collapse

Class Method Details

.load(path = default_config) ⇒ Object

Raises:



7
8
9
10
# File 'lib/postrocktues/config.rb', line 7

def load path = default_config
  raise FileNotFound unless File.exists? path
  new YAML.load_file(path)
end