summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Smith <tsmith@chef.io>2017-12-04 09:32:28 -0800
committerTim Smith <tsmith@chef.io>2017-12-04 09:32:28 -0800
commit9f795ee741450f9c03da07eae101838b7fc5849d (patch)
tree60bf408f3fbc1d4d5c0f5ef228692352b738d555
parentc6fee1e2c26a1271b459393db5e751b725c8f091 (diff)
downloadohai-rubygems_requir.tar.gz
Remove the remaining rubygems checking coderubygems_requir
Signed-off-by: Tim Smith <tsmith@chef.io>
-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