From b7b587fb8fa561b34267fe79aaca8b9664c241e8 Mon Sep 17 00:00:00 2001 From: Josh Holtrop Date: Tue, 6 Feb 2018 20:21:41 -0500 Subject: [PATCH] move Ruby bootstrapping to bootstrap.rb --- share/svi/bootstrap.rb | 9 +++++++++ share/svi/svi.rb | 8 +------- 2 files changed, 10 insertions(+), 7 deletions(-) create mode 100644 share/svi/bootstrap.rb diff --git a/share/svi/bootstrap.rb b/share/svi/bootstrap.rb new file mode 100644 index 0000000..ee2fe4f --- /dev/null +++ b/share/svi/bootstrap.rb @@ -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 diff --git a/share/svi/svi.rb b/share/svi/svi.rb index a1675e5..4642b57 100644 --- a/share/svi/svi.rb +++ b/share/svi/svi.rb @@ -1,8 +1,2 @@ -begin -rescue Interrupt => e -rescue Exception => e - $stderr.puts "#{e.class}: #{e}" - e.backtrace.each do |entry| - $stderr.puts "> #{entry}" - end +module Svi end