Sha256: 9d899366c126a38c1d5d99bf92ff11e45b6ef6f12d283a66267f2a72683ab241
Contents?: true
Size: 668 Bytes
Versions: 61
Compression:
Stored size: 668 Bytes
Contents
#!/usr/bin/ruby # encoding: utf-8 #begin; require 'faster_require'; rescue LoadError; end if RUBY_PLATFORM =~ /cygwin|mingw|win32/ 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
61 entries across 61 versions & 1 rubygems