# File lib/openshift-origin-node/model/unix_user.rb, line 361 def remove_env_var(key, prefix_cloud_name=false) status = false [".env", ".env/.uservars"].each do |path| env_dir = File.join(@homedir,path) if prefix_cloud_name # BZ 874594 if @config.get("CLOUD_NAME") Syslog.alert "Setting CLOUD_NAME in #{OpenShift::Config::NODE_CONF_FILE} has no effect." end key = "OPENSHIFT_#{key}" end env_file_path = File.join(env_dir, key) FileUtils.rm_f env_file_path status = status ? true : (File.exists?(env_file_path) ? false : true) end status end