Method: MRunEnv::SSHAgent.writeGoodHostFile
- Defined in:
- ext/lib/CompLearnLib/RunEnv.rb
.writeGoodHostFile ⇒ Object
returns filename of new hosts file
138 139 140 141 142 143 144 145 146 147 |
# File 'ext/lib/CompLearnLib/RunEnv.rb', line 138 def SSHAgent.writeGoodHostFile() # returns filename of new hosts file cfg = CLConfig.getDefaultConfig fname = RunEnv.getTemporaryFilename() f = File.open(fname, "wb") cfg.hosts.each { |h| f.write("#{h}\n") } f.close fname end |