Project

rhosts

0.0
No commit activity in last 3 years
No release in over 3 years
hosts file manager
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

~> 0.8.0
 Project Readme

RHosts

hosts file manager

Description

rhosts is a command that facilitates the management of the host file.

Usage

show all hosts

$ rhosts
rhosts> all
### actives
127.0.0.1
  localhost
  dev-www.example.com

127.0.0.2
  stg-www.example.com

### inactives
127.0.0.1
  stg-www.example.com

show active hosts

rhosts> actives
### actives
127.0.0.1
  localhost
  dev-www.example.com

127.0.0.2
  stg-www.example.com

show inactive hosts

rhosts> inactives
### inactives
127.0.0.1
  stg-www.example.com

map specific host

$ rhosts
rhosts> actives
### actives
127.0.0.1
  localhost
  dev-www.example.com

127.0.0.2
  stg-www.example.com

rhosts> map dev-www.example.co.jp 127.0.0.1
rhosts> actives
### actives
127.0.0.1
  localhost
  dev-www.example.com
  dev-www.example.co.jp

127.0.0.2
  stg-www.example.com

unmap specific host

$ rhosts
rhosts> actives
### actives
127.0.0.1
  localhost
  dev-www.example.com

127.0.0.2
  stg-www.example.com

rhosts> unmap dev-www.example.com 127.0.0.1
rhosts> actives
### actives
127.0.0.1
  localhost

127.0.0.2
  stg-www.example.com

advanced

You can override default settings. You can add original rule to map/unmap. You can define alias name to IP/host.

see .rhostsrc