Net::Netrc is a pure Ruby module providing ftp(1)-compatible .netrc file parsing.
Available as a RubyGem:
gem install net-netrc
or via the project site at
Net::Netrc is a pure Ruby module providing ftp(1)-compatible .netrc file parsing.
Available as a RubyGem:
gem install net-netrc
or via the project site at
Bob Showalter wrote:
Net::Netrc is a pure Ruby module providing ftp(1)-compatible .netrc file
parsing.
That's great. I think that we need something like this in the stdlib
even. However, implementation-wise
http://www.rubyist.net/~nobu/ruby/netrc.rb is a lot more Rubyish.
(Also, Nobu's solution only parses the file once, not once for every
lookup.)
nikolai
--
Nikolai Weibull: now available free of charge at http://bitwi.se/\!
Born in Chicago, IL USA; currently residing in Gothenburg, Sweden.
main(){printf(&linux["\021%six\012\0"],(linux)["have"]+"fun"-97);}