Skip to content

Instantly share code, notes, and snippets.

@jacobbednarz
Created October 28, 2013 02:32
n = Netrc.read
begin
@user, @password = n["myapidomain.com"]
rescue Exception => e
raise Exception, "My custom message"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment