lib/envious.rb in envious-0.1.0 vs lib/envious.rb in envious-0.1.1
- old
+ new
@@ -23,10 +23,10 @@
def default_vars()
yaml.reject { |_, v| Hash === v }
end
def environment_vars
- yaml.fetch(environment)
+ yaml.fetch(environment, {})
end
def add_to_environment(hash)
hash.each { |key, value| ENV[key.to_s] = value.to_s }
end