0.0
No commit activity in last 3 years
No release in over 3 years
A simple tool to help keeping your /etc/hosts file up-to-date
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

= 1.0.0.pre.2
= 0.6.2
 Project Readme

local-domains

Maps a list of domains to an ip address

Installation

Add this line to your application's Gemfile:

gem install local-domains

And then execute:

bundle install

Or install it yourself as:

gem install local-domains

Usage

Create a .local-domains file in your home directory, with a list of domains, one on each line (see .local-domains.example)

Run it with sudo:

sudo local-domains <ip address>

Or, if you use RVM, use rvmsudo:

rvmsudo local-domains <ip address>

To run on a specific Ruby version and gemset:

rvm ruby-2.0.0-p481@gemset-name do rvmsudo local-domains <ip address>

If the ip address is omitted, domains will be mapped to the first local ip address

TODO

  • tests!
  • better error checking
  • verbose option
  • help message