diff options
author | Tim Smith <tsmith@chef.io> | 2017-12-04 09:32:28 -0800 |
---|---|---|
committer | Tim Smith <tsmith@chef.io> | 2017-12-04 09:32:28 -0800 |
commit | 9f795ee741450f9c03da07eae101838b7fc5849d (patch) | |
tree | 60bf408f3fbc1d4d5c0f5ef228692352b738d555 /bin | |
parent | c6fee1e2c26a1271b459393db5e751b725c8f091 (diff) | |
download | ohai-9f795ee741450f9c03da07eae101838b7fc5849d.tar.gz |
Remove the remaining rubygems checking coderubygems_requir
Signed-off-by: Tim Smith <tsmith@chef.io>
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/ohai | 15 |
1 files changed, 3 insertions, 12 deletions
@@ -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 |