From b481c1a00a25217653ed6831fbdba916bc70917b Mon Sep 17 00:00:00 2001 From: Jamis Buck Date: Sun, 11 Sep 2005 19:40:43 +0000 Subject: [PATCH] Attempt to require rubygems when executing the switchtower utility (fixes #2134) git-svn-id: http://svn.rubyonrails.org/rails/tools/switchtower@2208 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- bin/switchtower | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/bin/switchtower b/bin/switchtower index c724670f..9a4f3001 100755 --- a/bin/switchtower +++ b/bin/switchtower @@ -1,5 +1,11 @@ #!/usr/bin/env ruby +begin + require 'rubygems' +rescue LoadError + # no rubygems to load, so we fail silently +end + require 'switchtower/cli' SwitchTower::CLI.execute!