Method: Condenser::Environment#append_path

Defined in:
lib/condenser/environment.rb

#append_path(*paths) ⇒ Object



36
37
38
39
40
41
42
# File 'lib/condenser/environment.rb', line 36

def append_path(*paths)
  paths.flatten.each do |path|
    path = File.expand_path(path)
    raise ArgumentError, "Path \"#{path}\" does not exists" if !File.directory?(path)
    @path.push(path)
  end
end