maphosts:使您的项目主机名与etchosts保持同步

时间:2021-05-26 13:33:54
【文件属性】:
文件名称:maphosts:使您的项目主机名与etchosts保持同步
文件大小:7KB
文件格式:ZIP
更新时间:2021-05-26 13:33:54
Ruby 映射主机 小型命令行应用程序,用于使您的项目主机名与/etc/hosts保持同步。 在启动脚本( make up脚本,shell脚本等)中使用它可以提供vagrant up的体验,因此人们可以开始编码而无需花费时间手动设置和更新/etc/hosts 。 开始吧 gem install maphosts 用法 maphosts {www.,static.,}example.lo 这会将 ,static.example.lo和example.lo添加到您的/etc/hosts 。 该工具只会更新/etc/hosts ,而该部分需要更新才能保留原始格式。 在需要并获得您的许可后,该工具将使用sudo写入/etc/hosts 。 默认情况下,主机将指向127.0.0.1但是您可以使用--to选项提供自定义IP地址。 boot2docker的 maphosts --to $(boot2
【文件预览】:
maphosts-master
----lib()
--------maphosts()
----Gemfile(39B)
----spec()
--------fixtures()
--------host_manager_spec.rb(3KB)
----maphosts.gemspec(651B)
----Rakefile(89B)
----LICENSE(1KB)
----README.md(2KB)
----.gitignore(567B)
----bin()
--------maphosts(1KB)

网友评论