Class | Netrc |
In: |
lib/netrc.rb
|
Parent: | Object |
VERSION | = | "0.7.7" | ||
WINDOWS | = | RbConfig::CONFIG["host_os"] =~ /mswin|mingw|cygwin/ | see stackoverflow.com/questions/4871309/what-is-the-correct-way-to-detect-if-ruby-is-running-on-windows | |
CYGWIN | = | RbConfig::CONFIG["host_os"] =~ /cygwin/ |
new_item_prefix | [RW] |
Returns two values, a header and a list of items. Each item is a tuple, containing some or all of:
This lets us change individual fields, then write out the file with all its original formatting.
Reads path and parses it as a .netrc file. If path doesn‘t exist, returns an empty object. Decrypt paths ending in .gpg.