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 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 above to proceed")
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.compact.dup
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.compact.dup
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.compact.each do |p|
87
+ packages.each do |p|
89
88
  args = [ p ]
90
89
  args << opts if opts
91
90
  Command.execute('brew', 'install', *args)
@@ -12,8 +12,8 @@
12
12
  module RightConf
13
13
 
14
14
  MAJOR = 0
15
- MINOR = 6
16
- BUILD = 35
15
+ MINOR = 7
16
+ BUILD = 0
17
17
 
18
18
  VERSION = [MAJOR, MINOR, BUILD].map(&:to_s).join('.')
19
19
 
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: rconf
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.6.35
5
+ version: 0.7.0
6
6
  platform: ruby
7
7
  authors:
8
8
  - Raphael Simon