Sha256: 73004e33763a541748f4e1a1c894114db73efb826edb73cba562d9782e1e20cb
Contents?: true
Size: 570 Bytes
Versions: 4
Compression:
Stored size: 570 Bytes
Contents
#!/usr/bin/ruby # encoding: utf-8 require 'rake' begin load 'six-updater-web/_rake.rb' rescue => e puts e.class, e.message, e.backtrace.join("\n") begin require 'fileutils' path = File.join(SixUpdaterWeb::DATA_PATH, 'logs') FileUtils.mkdir_p path unless File.exists?(path) File.open(File.join(path, "six-updater-web-error.log"), 'w') {|f| f.puts e.class, e.message, e.backtrace.join("\n")} rescue => e puts "ERROR: #{e.class}: #{e.message} #{e.backtrace.join("\n")}" end sleep 5 Process.exit(1) # Return error-1 end
Version data entries
4 entries across 4 versions & 1 rubygems