diff options
author | Lamont Granquist <lamont@scriptkiddie.org> | 2015-02-19 13:27:40 -0800 |
---|---|---|
committer | Lamont Granquist <lamont@scriptkiddie.org> | 2015-02-23 10:44:58 -0800 |
commit | 5c6ef532630f3d08325fd0e1635d2b6dd6057a31 (patch) | |
tree | 34ebb62d6533770df52378917a7a3f30b2f27c79 /lib/chef/provider/package/freebsd | |
parent | 2603e2153d6ab50179d2278025a51579edb9033f (diff) | |
download | chef-5c6ef532630f3d08325fd0e1635d2b6dd6057a31.tar.gz |
fix Lint/UnderscorePrefixedVariableName
Diffstat (limited to 'lib/chef/provider/package/freebsd')
-rw-r--r-- | lib/chef/provider/package/freebsd/base.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/chef/provider/package/freebsd/base.rb b/lib/chef/provider/package/freebsd/base.rb index b0f05667ff..6a3b97a4fd 100644 --- a/lib/chef/provider/package/freebsd/base.rb +++ b/lib/chef/provider/package/freebsd/base.rb @@ -48,10 +48,10 @@ class Chef # Otherwise look up the path to the ports directory using 'whereis' else whereis = shell_out!("whereis -s #{port}", :env => nil) - unless _path = whereis.stdout[/^#{Regexp.escape(port)}:\s+(.+)$/, 1] + unless path = whereis.stdout[/^#{Regexp.escape(port)}:\s+(.+)$/, 1] raise Chef::Exceptions::Package, "Could not find port with the name #{port}" end - _path + path end end |