summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorLamont Granquist <lamont@scriptkiddie.org>2016-02-11 17:33:29 -0800
committerLamont Granquist <lamont@scriptkiddie.org>2016-02-11 17:33:29 -0800
commit43cd21b687a8a46b59be410de8be5f0bf133d1dc (patch)
tree2886d2e8b3e7bf67b38e1bbad17c00db21e7129c /bin
parent08c29c13309a4f7980dd4c3d5bc9eb29f0ec9ac8 (diff)
downloadohai-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-xbin/ohai7
1 files changed, 3 insertions, 4 deletions
diff --git a/bin/ohai b/bin/ohai
index d6ec07da..4bc6b066 100755
--- a/bin/ohai
+++ b/bin/ohai
@@ -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?"