summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
Diffstat (limited to 'bin')
-rwxr-xr-xbin/ohai15
1 files changed, 3 insertions, 12 deletions
diff --git a/bin/ohai b/bin/ohai
index a12f269b..d8e1cc89 100755
--- a/bin/ohai
+++ b/bin/ohai
@@ -19,17 +19,8 @@
# limitations under the License.
#
-begin
- # if we're in a source code checkout, we want to run the code from that.
- # have to do this *after* rubygems is loaded.
- $:.unshift File.expand_path("../../lib", __FILE__)
- require "ohai/application"
-rescue LoadError
- if missing_rubygems
- STDERR.puts "rubygems previously failed to load - is it installed?"
- end
-
- raise
-end
+# if we're in a source code checkout, we want to run the code from that.
+$:.unshift File.expand_path("../../lib", __FILE__)
+require "ohai/application"
Ohai::Application.new.run