diff options
author | mr <mr@mrautenberg.de> | 2011-10-11 12:37:14 +0200 |
---|---|---|
committer | mr <mr@mrautenberg.de> | 2011-10-11 12:37:14 +0200 |
commit | 680b552ce6d135a1730f83eb23da44ae244c2aa8 (patch) | |
tree | d4a4f5b9edce67794d3fd4ef7155425a9d24d5e9 /helper.rb | |
parent | 99a50ecb6c6cbff678048c2f60eafcfe476c1b64 (diff) |
endpoint for external dataset
Diffstat (limited to 'helper.rb')
-rw-r--r-- | helper.rb | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -98,7 +98,7 @@ helpers do def endpoint_option_list(max_time=3600) out = "" - tmpfile = File.join(TMP_DIR, "endpoint_option_list") + tmpfile = File.join(TMP_DIR, 'endpoint_option_list') if File.exists? tmpfile if Time.now-File.mtime(tmpfile) <= max_time f = File.open(tmpfile, 'r+') @@ -110,7 +110,7 @@ helpers do end result = endpoint_selection() if result.lines.count > 3 - f = File.new(tmpfile,"w") + f = File.new(tmpfile,'w') f.print result f.close end |