| Class | Netrc |
| In: |
lib/netrc.rb
|
| Parent: | Object |
| VERSION | = | "0.11.0" | ||
| 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/ | ||
| Entry | = | Struct.new(:login, :password) do alias to_ary to_a |
| 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.