Skip to content

Commit

Permalink
Update README
Browse files Browse the repository at this point in the history
  • Loading branch information
Aneurysm9 committed Nov 14, 2010
1 parent eec1dcc commit 275af37
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
*.swp
pm_to_blib
Makefile
Makefile.old
blib/
14 changes: 12 additions & 2 deletions README
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,18 @@ This is a simple Perl script for managing multiple hostfile configurations on *N

To get started, create a directory /etc/hostfiles and place one or more files in the directory containing hostfile fragments. The fragment filename will be used to tell the hostfile manager what to enable or disable.

Using the hostfile manager is simple. It has two options: --enable and --disable. You can specify each multiple times or pass comma-separated lists of fragment filenames.
Using the hostfile manager is simple. It has two primary options: --enable and --disable. You can specify each multiple times or pass comma-separated lists of fragment filenames.

For example, to enable a hostfile fragment called "staging":

hostfiles --enable staging
$ hostfiles --enable staging

You can ask for the status of the available hostfile fragments by passing the --status flag:

$ hostfiles --status
+ local
$

The first character of the status ouput will be ' ' if the fragment is not enabled, '+' if it is enabled, and '*' if it is enabled and has been modified in /etc/hosts.

Passing the --interactive flag will ignore any --enable, --disable, or --status options and present a list of hostfile fragments that can be enabled or disabled interactively.

0 comments on commit 275af37

Please sign in to comment.