move Ruby bootstrapping to bootstrap.rb

This commit is contained in:
Josh Holtrop 2018-02-06 20:21:41 -05:00
parent 7c5a2ebe3a
commit b7b587fb8f
2 changed files with 10 additions and 7 deletions

9
share/svi/bootstrap.rb Normal file
View File

@ -0,0 +1,9 @@
begin
load File.join(File.dirname(__FILE__), "svi.rb")
rescue Interrupt => e
rescue Exception => e
$stderr.puts "#{e.class}: #{e}"
e.backtrace.each do |entry|
$stderr.puts "> #{entry}"
end
end

View File

@ -1,8 +1,2 @@
begin module Svi
rescue Interrupt => e
rescue Exception => e
$stderr.puts "#{e.class}: #{e}"
e.backtrace.each do |entry|
$stderr.puts "> #{entry}"
end
end end