Skip to content

Instantly share code, notes, and snippets.

@invisiblefunnel
Created November 18, 2013 19:56
Show Gist options
  • Select an option

  • Save invisiblefunnel/7534294 to your computer and use it in GitHub Desktop.

Select an option

Save invisiblefunnel/7534294 to your computer and use it in GitHub Desktop.
Consistent means of indicating environment variables required during runtime
def ENV.assert(key)
ENV[key] or raise "missing required ENV value for key: #{key}"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment