{"id":20604041,"url":"https://github.com/tschaefer/ruby-hosts","last_synced_at":"2026-01-20T05:33:51.194Z","repository":{"id":159708898,"uuid":"529542465","full_name":"tschaefer/ruby-hosts","owner":"tschaefer","description":":ticket: Query and control the system hosts file.","archived":false,"fork":false,"pushed_at":"2024-10-07T04:19:04.000Z","size":69,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-09-26T09:38:04.736Z","etag":null,"topics":["cmdline","hosts","linux","ruby"],"latest_commit_sha":null,"homepage":"","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tschaefer.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-08-27T09:41:42.000Z","updated_at":"2024-10-07T04:19:04.000Z","dependencies_parsed_at":null,"dependency_job_id":"eabce8f2-d6ca-4d94-a7b5-6635eb9a4aa3","html_url":"https://github.com/tschaefer/ruby-hosts","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/tschaefer/ruby-hosts","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tschaefer%2Fruby-hosts","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tschaefer%2Fruby-hosts/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tschaefer%2Fruby-hosts/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tschaefer%2Fruby-hosts/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tschaefer","download_url":"https://codeload.github.com/tschaefer/ruby-hosts/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tschaefer%2Fruby-hosts/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28596451,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-20T02:08:49.799Z","status":"ssl_error","status_checked_at":"2026-01-20T02:08:44.148Z","response_time":117,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cmdline","hosts","linux","ruby"],"created_at":"2024-11-16T09:20:10.031Z","updated_at":"2026-01-20T05:33:51.161Z","avatar_url":"https://github.com/tschaefer.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# hostsctl\n\n**hostsctl** - Query and control the system hosts file.\n\n## Introduction\n\n**hostsctl** may be used to query and change the system hosts file entries,\nlocal and remote.\n\n* list entries\n* add new entry\n* remove entry\n* set hostname of existing entry\n* add and remove alias of existing entry\n\n## Installation\n\n    $ gem build\n    $ gem install -g\n    $ gem install hosts-$(ruby -Ilib -e 'require \"hosts/version\"; puts Hosts::VERSION').gem\n\n## Usage\n\nFor usage of command line tool `hostsctl` see following help output.\n\n    Usage:\n        hostsctl [OPTIONS] SUBCOMMAND [ARG] ...\n\n    Parameters:\n        SUBCOMMAND         subcommand\n        [ARG] ...          subcommand arguments\n\n    Subcommands:\n        add                add new hosts entry\n        add-alias          add list of aliases to hosts entry\n        list               list all hosts entries\n        remove             remove hosts entry\n        remove-alias       remove list of aliases from hosts entry\n        set-hostname       set hostname of hosts entry\n\n    Options:\n        -h, --help                print help\n        -m, --man                 show manpage\n        -v, --version             show version\n        -f, --file FILE           hosts file (default: system file)\n        -H, --host [USER@]HOST    operate on remote host\n\nFor API documentation use `rake doc`.\n\n## License\n\n[MIT License](https://spdx.org/licenses/MIT.html).\n\n## Is it any good?\n\n[Yes](https://news.ycombinator.com/item?id=3067434)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftschaefer%2Fruby-hosts","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftschaefer%2Fruby-hosts","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftschaefer%2Fruby-hosts/lists"}