The Ruby way to find, parse, and use .pgpass files
Ruby
Pull request Compare This branch is 4 commits behind manveru:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib
spec
tasks
.gems
.rvmrc
.travis.yml
AUTHORS
CHANGELOG
LICENSE
MANIFEST
README.md
Rakefile
pgpass.gemspec

README.md

pgpass

This little library helps you finding, parsing, and using entries in .pgpass files.

Example usage

entry = Pgpass.match(database: 'sample_db', user: 'manveru')
DB = Sequel.connect(entry.to_url)

License

MIT all the way, see the LICENSE file.