Method: Confinement::Config#initialize

Defined in:
lib/confinement.rb

#initialize(root:) ⇒ Config

Returns a new instance of Config.



124
125
126
127
128
129
130
# File 'lib/confinement.rb', line 124

def initialize(root:)
  @root = Pathname.new(root).expand_path.cleanpath

  if !@root.exist?
    raise Error::PathDoesNotExist, "Root path does not exist: #{@root}"
  end
end