summaryrefslogtreecommitdiff
path: root/lib/chef
diff options
context:
space:
mode:
authorLamont Granquist <lamont@scriptkiddie.org>2016-02-08 15:41:18 -0800
committerLamont Granquist <lamont@scriptkiddie.org>2016-02-09 09:16:06 -0800
commitdae03acfd9f0956913e596fc1290e76e39ca3d91 (patch)
tree4e0f3418b4f043c57b428621a018fb91e6f1c4bf /lib/chef
parent3913addd011cee9126dfbaaf5ce804ce8aaf8928 (diff)
downloadchef-dae03acfd9f0956913e596fc1290e76e39ca3d91.tar.gz
rubocopisms
Diffstat (limited to 'lib/chef')
-rw-r--r--lib/chef/cookbook/gem_installer.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/chef/cookbook/gem_installer.rb b/lib/chef/cookbook/gem_installer.rb
index 4211c61d2f..5b3014d449 100644
--- a/lib/chef/cookbook/gem_installer.rb
+++ b/lib/chef/cookbook/gem_installer.rb
@@ -48,7 +48,7 @@ class Chef
inline_gemfile do
source Chef::Config[:rubygems_url]
cookbook_gems.each do |args|
- gem *args
+ gem(*args)
end
end
rescue Exception => e
@@ -109,7 +109,7 @@ class Chef
def inline_gemfile(&block)
# requires https://github.com/bundler/bundler/pull/4245
gemfile(true, ui: ChefBundlerUI.new(events), &block)
- rescue ArgumentError # Method#arity doesn't inspect optional arguments, so we rescue
+ rescue ArgumentError # Method#arity doesn't inspect optional arguments, so we rescue
# requires bundler 1.10.0
gemfile(true, &block)
end