rconf 0.7.13 → 0.7.15
Sign up to get free protection for your applications and to get access to all the features.
- data/bin/rconf +5 -4
- data/lib/rconf/support/environment_updater.rb +16 -0
- data/lib/rconf/version.rb +1 -1
- metadata +3 -3
data/bin/rconf
CHANGED
@@ -130,13 +130,14 @@ where [options] are:
|
|
130
130
|
if rconf =~ /rconf \(#{version}/
|
131
131
|
report_success
|
132
132
|
next
|
133
|
-
|
133
|
+
elsif rconf =~ /rconf/
|
134
134
|
report_failure
|
135
135
|
report_check("Updating rconf for #{ruby}@#{gs}")
|
136
136
|
res = Command.execute('rvm', "#{ruby}@#{gs}", 'gem', 'install',
|
137
|
-
'rconf', '-v', version, '--no-ri', '--no-rdoc'
|
138
|
-
|
139
|
-
|
137
|
+
'rconf', '-v', version, '--no-ri', '--no-rdoc')
|
138
|
+
report_result(res.success?)
|
139
|
+
else
|
140
|
+
report('SKIPPED (no rconf)')
|
140
141
|
end
|
141
142
|
end
|
142
143
|
end
|
@@ -28,6 +28,22 @@ module RightConf
|
|
28
28
|
# true:: If bash resource or profile file was updated
|
29
29
|
# false:: Otherwise
|
30
30
|
def self.update(code, dependencies=[])
|
31
|
+
new.do_update(code, dependencies)
|
32
|
+
end
|
33
|
+
|
34
|
+
# Update bash resource or profile file to define given environment variable
|
35
|
+
# or append to existing environment variable
|
36
|
+
#
|
37
|
+
# === Parameters
|
38
|
+
# code(String):: Code to be inserted in bash resource file
|
39
|
+
# dependencies(Array):: List of environment variables that code will update
|
40
|
+
# (Use to put code after these env var are set in the
|
41
|
+
# existing bash resource file)
|
42
|
+
#
|
43
|
+
# === Return
|
44
|
+
# true:: If bash resource or profile file was updated
|
45
|
+
# false:: Otherwise
|
46
|
+
def do_update(code, dependencies=[])
|
31
47
|
if Platform.darwin?
|
32
48
|
candidates = [ '.bash_profile' ]
|
33
49
|
else
|
data/lib/rconf/version.rb
CHANGED
metadata
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
name: rconf
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 0.7.
|
5
|
+
version: 0.7.15
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Raphael Simon
|
@@ -10,7 +10,7 @@ autorequire:
|
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
12
|
|
13
|
-
date: 2011-04-
|
13
|
+
date: 2011-04-11 00:00:00 -07:00
|
14
14
|
default_executable:
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
@@ -131,7 +131,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
131
131
|
requirements: []
|
132
132
|
|
133
133
|
rubyforge_project: rconf
|
134
|
-
rubygems_version: 1.
|
134
|
+
rubygems_version: 1.6.2
|
135
135
|
signing_key:
|
136
136
|
specification_version: 3
|
137
137
|
summary: Cross platform environment configuration
|