lib/sct/commands/init.rb in sct-0.1.11 vs lib/sct/commands/init.rb in sct-0.1.12
- old
+ new
@@ -29,18 +29,12 @@
cloud_proxy_path = cli.ask("What is the path of your cloud proxy json credentials?") { |q|
q.default = "~/.config/gcloud/application_default_credentials.json"
}
- host_path = "/etc/hosts"
- if Sct::Config.operatingSystem == Sct::Config::WINDOWS
- host_path = "/mnt/c/Windows/System32/drivers/etc/hosts"
- end
-
contents = ""
contents << "email=#{email}\n"
contents << "cloud-proxy-path=#{File.expand_path(cloud_proxy_path)}\n"
- contents << "host-path=#{File.expand_path(host_path)}\n"
if !File.directory?(Sct::Config.dir)
FileUtils.mkdir_p(Sct::Config.dir)
end