<commit_before>Ghost
=====

A gem that allows you to create, list, and modify local hostnames
with ease in linux and OS (more to come)...

Requirements
============

Unix-based OS (for now)

Intended Usage
==============

This gem is designed primarily for web developers who need to add
and modify hostnames to their system for virtual hosts on their
local/remote web server. However, it could be of use to other people
who would otherwise modify their `/etc/hosts` file manually and
flush the cache.

Command
-------

    $ ghost add mydevsite.local
      [Adding] mydevsite.local -> 127.0.0.1

    $ ghost add staging-server.local 192.168.3.11
      [Adding] staging-server.local -> 192.168.3.11

    $ ghost list
    Listing 2 host(s):
      mydevsite.local      -> 127.0.0.1
      staging-server.local -> 192.168.3.11

    $ ghost delete mydevsite.local
      [Deleting] mydevsite.local

    $ ghost delete_matching test
      [Deleting] test2.local
      [Deleting] test.local

    $ ghost list
    Listing 1 host(s):
      staging-server.local -> 192.168.3.11

    $ ghost modify staging-server.local 172.16.31.10
      [Modifying] staging-server.local -> 172.16.31.10

    $ ghost list
    Listing 1 host(s):
      staging-server.local -> 172.16.31.10

    $ ghost export > some_file

    $ ghost empty
      [Emptying] Done.

    $ ghost list
    Listing 0 host(s):

    $ ghost import some_file
      [Adding] staging-server.local -> 172.16.31.10

    $ ghost list
    Listing 1 host(s):
      staging-server.local -> 172.16.31.10

Library
-------

There is also a library that can be used in Ruby scripts. The `ghost`
command is a wrapper for the library. View the source of `bin/ghost`
to see how to use the library.

Installation
============

    sudo gem install ghost

Contributors
============

If this list is ever out of date, you can get full contributor list with `git log --format='%aN (%ae)' | sort -u`

* [<NAME>](https://github.com/alkesh)
* [<NAME>](https://github.com/extraordinaire)
* [<NAME>](https://github.com/benhoskings)
* [<NAME>](https://github.com/bjeanes)
* [<NAME>](https://github.com/simonc)
* [<NAME>](https://github.com/fcoury)
* [<NAME>](https://github.com/jmazzi)
* [<NAME>](https://github.com/LarsFronius)<commit_msg>HowTo install and excecute a command when RVM.<commit_after>Ghost
=====

A gem that allows you to create, list, and modify local hostnames
with ease in linux and OS (more to come)...

Requirements
============

Unix-based OS (for now)

Intended Usage
==============

This gem is designed primarily for web developers who need to add
and modify hostnames to their system for virtual hosts on their
local/remote web server. However, it could be of use to other people
who would otherwise modify their `/etc/hosts` file manually and
flush the cache.

Command
-------

    $ ghost add mydevsite.local
      [Adding] mydevsite.local -> 127.0.0.1

    $ ghost add staging-server.local 192.168.3.11
      [Adding] staging-server.local -> 192.168.3.11

    $ ghost list
    Listing 2 host(s):
      mydevsite.local      -> 127.0.0.1
      staging-server.local -> 192.168.3.11

    $ ghost delete mydevsite.local
      [Deleting] mydevsite.local

    $ ghost delete_matching test
      [Deleting] test2.local
      [Deleting] test.local

    $ ghost list
    Listing 1 host(s):
      staging-server.local -> 192.168.3.11

    $ ghost modify staging-server.local 172.16.31.10
      [Modifying] staging-server.local -> 172.16.31.10

    $ ghost list
    Listing 1 host(s):
      staging-server.local -> 172.16.31.10

    $ ghost export > some_file

    $ ghost empty
      [Emptying] Done.

    $ ghost list
    Listing 0 host(s):

    $ ghost import some_file
      [Adding] staging-server.local -> 172.16.31.10

    $ ghost list
    Listing 1 host(s):
      staging-server.local -> 172.16.31.10

With RVM you need to add `rvmsudo` before the command:

    $ rvmsudo ghost add mydevsite.local
      [Adding] mydevsite.local -> 127.0.0.1

Library
-------

There is also a library that can be used in Ruby scripts. The `ghost`
command is a wrapper for the library. View the source of `bin/ghost`
to see how to use the library.

Installation
============

    sudo gem install ghost

If you are using RVM:

    gem install ghost

Contributors
============

If this list is ever out of date, you can get full contributor list with `git log --format='%aN (%ae)' | sort -u`

* [<NAME>](https://github.com/alkesh)
* [<NAME>](https://github.com/extraordinaire)
* [<NAME>](https://github.com/benhoskings)
* [<NAME>](https://github.com/bjeanes)
* [<NAME>](https://github.com/simonc)
* [<NAME>](https://github.com/fcoury)
* [<NAME>](https://github.com/jmazzi)
* [<NAME>](https://github.com/LarsFronius)
{'fraction_non_alphanumeric': 0.14234500210881484, 'fraction_numerical': 0.04301982285955293, 'mean_word_length': 2.894088669950739, 'pattern_counts': {'":': 0, '<': 19, '<?xml version=': 0, '>': 40, 'https://': 16, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 23, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2026970', 'n_tokens_mistral': 1732, 'n_tokens_neox': 1516, 'n_words': 483}