diff options
author | Lamont Granquist <lamont@scriptkiddie.org> | 2016-02-11 17:33:29 -0800 |
---|---|---|
committer | Lamont Granquist <lamont@scriptkiddie.org> | 2016-02-11 17:33:29 -0800 |
commit | 43cd21b687a8a46b59be410de8be5f0bf133d1dc (patch) | |
tree | 2886d2e8b3e7bf67b38e1bbad17c00db21e7129c /bin | |
parent | 08c29c13309a4f7980dd4c3d5bc9eb29f0ec9ac8 (diff) | |
download | ohai-43cd21b687a8a46b59be410de8be5f0bf133d1dc.tar.gz |
chefstyle catchup for ohai
there's still a few cops that are unaddressed by this change, so it
won't be clean after merging this.
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/ohai | 7 |
1 files changed, 3 insertions, 4 deletions
@@ -19,9 +19,8 @@ # limitations under the License. # - begin - require 'rubygems' + require "rubygems" rescue LoadError # must be debian! ;) missing_rubygems = true @@ -29,8 +28,8 @@ end 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' + $:.unshift File.expand_path("../../lib", __FILE__) + require "ohai/application" rescue LoadError if missing_rubygems STDERR.puts "rubygems previously failed to load - is it installed?" |