rconf 0.6.35 → 0.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/bin/rconf +1 -1
- data/lib/rconf/support/package_installer.rb +5 -6
- data/lib/rconf/version.rb +2 -2
- metadata +1 -1
data/bin/rconf
CHANGED
@@ -169,7 +169,7 @@ where [options] are:
|
|
169
169
|
project = File.basename(options[:config], CONFIG_EXTENSION).blue
|
170
170
|
platform = Platform.family.to_s.blue
|
171
171
|
if aborted
|
172
|
-
report("Configuration of #{project} stopped, please follow instructions
|
172
|
+
report("Configuration of #{project} stopped, please follow instructions below to proceed")
|
173
173
|
else
|
174
174
|
report("Successfully configured #{project} for #{platform}")
|
175
175
|
end
|
@@ -34,7 +34,8 @@ module RightConf
|
|
34
34
|
# === Return
|
35
35
|
# true:: Always return true
|
36
36
|
def install(packages, opts=nil, &install_check)
|
37
|
-
packages = [ packages ].flatten
|
37
|
+
packages = [ packages ].flatten.compact
|
38
|
+
return true if packages.empty?
|
38
39
|
report = opts && opts.delete(:report)
|
39
40
|
must_install = true
|
40
41
|
if install_check
|
@@ -58,8 +59,7 @@ module RightConf
|
|
58
59
|
# true:: Always return true
|
59
60
|
def install_linux_ubuntu(packages, opts)
|
60
61
|
return if packages.nil?
|
61
|
-
args = packages.
|
62
|
-
return if args.empty?
|
62
|
+
args = packages.dup
|
63
63
|
args << opts if opts
|
64
64
|
Command.sudo('apt-get', 'install', '-y', *args)
|
65
65
|
end
|
@@ -71,8 +71,7 @@ module RightConf
|
|
71
71
|
# true:: Always return true
|
72
72
|
def install_linux_centos(packages, opts)
|
73
73
|
return if packages.nil?
|
74
|
-
args = packages.
|
75
|
-
return if args.empty?
|
74
|
+
args = packages.dup
|
76
75
|
args << opts if opts
|
77
76
|
Command.sudo('yum', 'install', '-y', *args)
|
78
77
|
end
|
@@ -85,7 +84,7 @@ module RightConf
|
|
85
84
|
def install_darwin(packages, opts)
|
86
85
|
return if packages.nil?
|
87
86
|
BrewInstaller.check_and_install
|
88
|
-
packages.
|
87
|
+
packages.each do |p|
|
89
88
|
args = [ p ]
|
90
89
|
args << opts if opts
|
91
90
|
Command.execute('brew', 'install', *args)
|
data/lib/rconf/version.rb
CHANGED