rconf 0.6.33 → 0.6.34
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/rconf/support/package_installer.rb +5 -3
- data/lib/rconf/version.rb +1 -1
- metadata +1 -1
@@ -58,7 +58,8 @@ module RightConf
|
|
58
58
|
# true:: Always return true
|
59
59
|
def install_linux_ubuntu(packages, opts)
|
60
60
|
return if packages.nil?
|
61
|
-
args = packages.dup
|
61
|
+
args = packages.compact.dup
|
62
|
+
return if args.empty?
|
62
63
|
args << opts if opts
|
63
64
|
Command.sudo('apt-get', 'install', '-y', *args)
|
64
65
|
end
|
@@ -70,7 +71,8 @@ module RightConf
|
|
70
71
|
# true:: Always return true
|
71
72
|
def install_linux_centos(packages, opts)
|
72
73
|
return if packages.nil?
|
73
|
-
args = packages.dup
|
74
|
+
args = packages.compact.dup
|
75
|
+
return if args.empty?
|
74
76
|
args << opts if opts
|
75
77
|
Command.sudo('yum', 'install', '-y', *args)
|
76
78
|
end
|
@@ -83,7 +85,7 @@ module RightConf
|
|
83
85
|
def install_darwin(packages, opts)
|
84
86
|
return if packages.nil?
|
85
87
|
BrewInstaller.check_and_install
|
86
|
-
packages.each do |p|
|
88
|
+
packages.compact.each do |p|
|
87
89
|
args = [ p ]
|
88
90
|
args << opts if opts
|
89
91
|
Command.execute('brew', 'install', *args)
|
data/lib/rconf/version.rb
CHANGED