Class: Helpers

Inherits:
Object
  • Object
show all
Defined in:
bin/cavalcade

Class Method Summary collapse

Class Method Details

.load_environment(file_path) ⇒ Object



38
39
40
41
42
43
44
45
46
47
48
# File 'bin/cavalcade', line 38

def self.load_environment(file_path)
  begin
    require file_path
  rescue LoadError => e
    if e.message.include?(file_path)
      Trollop::die "Unable to load #{file_path}"
    else
      raise e
    end
  end
end