summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorNoah Kantrowitz <noah@coderanger.net>2017-04-03 15:58:52 -0500
committerNoah Kantrowitz <noah@coderanger.net>2017-05-24 09:08:59 -0500
commitaa0d2f150726f394b9edc145ab4d8a20aaf32db7 (patch)
tree05667d6c8bd8806ec04c9ca1ae447642ca7043dc /lib
parent066adec626a11e4323a4962523a3dca1db7a49d6 (diff)
downloadchef-aa0d2f150726f394b9edc145ab4d8a20aaf32db7.tar.gz
Chefstyle fixes.
Signed-off-by: Noah Kantrowitz <noah@coderanger.net>
Diffstat (limited to 'lib')
-rw-r--r--lib/chef/formatters/error_description.rb7
1 files changed, 3 insertions, 4 deletions
diff --git a/lib/chef/formatters/error_description.rb b/lib/chef/formatters/error_description.rb
index cbe8e964d8..ceb2f68539 100644
--- a/lib/chef/formatters/error_description.rb
+++ b/lib/chef/formatters/error_description.rb
@@ -17,8 +17,7 @@
# limitations under the License.
#
-require 'chef/version'
-
+require "chef/version"
class Chef
module Formatters
@@ -68,7 +67,7 @@ class Chef
end
def error_context_info
- context_info = {chef_version: Chef::VERSION}
+ context_info = { chef_version: Chef::VERSION }
if Chef.node
context_info[:platform] = Chef.node["platform"]
context_info[:platform_version] = Chef.node["platform_version"]
@@ -79,7 +78,7 @@ class Chef
context_info[:program_name] = $PROGRAM_NAME
# This is kind of wonky but it's the only way to get the entry path script.
context_info[:executable] = File.realpath(caller.last[/^(.*):\d+:in /, 1])
- context_info.map {|k, v| "#{k}=#{v}"}.join("\n")
+ context_info.map { |k, v| "#{k}=#{v}" }.join("\n")
end
end