Registry / config / hosts
library0.1.1rbrubygemsunverified

Hosts is a Ruby library able to read or manipulate the operating system's host files while preserving their original formatting.

gem install hosts
INSTALL
IMPORT
SIG · HOSTS
H
hosts
configrubyv0.1.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Hosts
require 'hosts'

Read and iterate over entries in the system hosts file

require 'hosts' hosts = Hosts::File.open('/etc/hosts') hosts.each { |entry| puts entry.address }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.1.1latest on RubyGems
Audit
Dependencies

No dependency data recorded yet.

Agent activity
29 hits · last 30 days
node
26
Resources
hosts — gem install hosts · libregistry