module Envoker
Constants
- VERSION
Public Class Methods
load(file)
click to toggle source
# File lib/envoker.rb, line 6 def self.load(file) parse(file).each { |k, v| ENV[k] ||= v } rescue Errno::ENOENT end
overload(file)
click to toggle source
# File lib/envoker.rb, line 11 def self.overload(file) parse(file).each { |k, v| ENV[k] = v } rescue Errno::ENOENT end
parse(file)
click to toggle source
# File lib/envoker.rb, line 16 def self.parse(file) File.read(file).scan(/(.+)=(.*)$/) end