summaryrefslogtreecommitdiff
path: root/lib/chef/provider/package/pacman.rb
diff options
context:
space:
mode:
authorLamont Granquist <lamont@scriptkiddie.org>2018-06-15 14:12:39 -0700
committerLamont Granquist <lamont@scriptkiddie.org>2018-06-15 14:12:39 -0700
commit292d226717dfffe959d3d48e9b9e7e533da69641 (patch)
tree5dacbf4b11a01871b829f88b4a8e6b7c16ba0980 /lib/chef/provider/package/pacman.rb
parentaa4f3285f3e49919e29f40337183fd0510baaee5 (diff)
downloadchef-292d226717dfffe959d3d48e9b9e7e533da69641.tar.gz
Unification of shell_out APIs
converts all usage to just shell_out() from the numerous helper utilities that we've had previously. Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
Diffstat (limited to 'lib/chef/provider/package/pacman.rb')
-rw-r--r--lib/chef/provider/package/pacman.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/chef/provider/package/pacman.rb b/lib/chef/provider/package/pacman.rb
index 2f08ee7d28..4a3b795700 100644
--- a/lib/chef/provider/package/pacman.rb
+++ b/lib/chef/provider/package/pacman.rb
@@ -32,7 +32,7 @@ class Chef
current_resource.package_name(new_resource.package_name)
logger.trace("#{new_resource} checking pacman for #{new_resource.package_name}")
- status = shell_out_compact("pacman", "-Qi", new_resource.package_name)
+ status = shell_out("pacman", "-Qi", new_resource.package_name)
status.stdout.each_line do |line|
case line
when /^Version(\s?)*: (.+)$/
@@ -60,7 +60,7 @@ class Chef
package_repos = repos.map { |r| Regexp.escape(r) }.join("|")
- status = shell_out_compact("pacman", "-Sl")
+ status = shell_out("pacman", "-Sl")
status.stdout.each_line do |line|
case line
when /^(#{package_repos}) #{Regexp.escape(new_resource.package_name)} (.+)$/
@@ -82,7 +82,7 @@ class Chef
end
def install_package(name, version)
- shell_out_compact!( "pacman", "--sync", "--noconfirm", "--noprogressbar", options, name)
+ shell_out!( "pacman", "--sync", "--noconfirm", "--noprogressbar", options, name)
end
def upgrade_package(name, version)
@@ -90,7 +90,7 @@ class Chef
end
def remove_package(name, version)
- shell_out_compact!( "pacman", "--remove", "--noconfirm", "--noprogressbar", options, name )
+ shell_out!( "pacman", "--remove", "--noconfirm", "--noprogressbar", options, name )
end
def purge_package(name, version)