rconf 0.9.12 → 0.9.17

Sign up to get free protection for your applications and to get access to all the features.
data/LICENSE ADDED
@@ -0,0 +1,20 @@
1
+ Copyright (c) 2009-2012 RightScale, Inc.
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining
4
+ a copy of this software and associated documentation files (the
5
+ 'Software'), to deal in the Software without restriction, including
6
+ without limitation the rights to use, copy, modify, merge, publish,
7
+ distribute, sublicense, and/or sell copies of the Software, and to
8
+ permit persons to whom the Software is furnished to do so, subject to
9
+ the following conditions:
10
+
11
+ The above copyright notice and this permission notice shall be
12
+ included in all copies or substantial portions of the Software.
13
+
14
+ THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
15
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
17
+ IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
18
+ CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
19
+ TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
20
+ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -18,9 +18,6 @@ module RightConf
18
18
  include Singleton
19
19
  include ProgressReporter
20
20
 
21
- # Builtin RVM commands
22
- RVM_COMMANDS = [ 'gem', 'rubygems' ]
23
-
24
21
  # Execute given command with given arguments
25
22
  #
26
23
  # === Parameters
@@ -37,6 +34,8 @@ module RightConf
37
34
  def execute(command, *args)
38
35
  ENV['rvm_is_not_a_shell_function'] = '0'
39
36
  ENV['rvm_ignore_rvmrc'] = '1'
37
+ ENV['rvm_reload_flag'] = '0'
38
+ ENV['rvm_project_rvmrc'] = '0'
40
39
  opts = {}
41
40
  if !args.empty? && args[-1].is_a?(Hash)
42
41
  opts = args[-1]
@@ -71,14 +70,8 @@ module RightConf
71
70
  # and thus could be successful when the command actually failed...
72
71
  def execute_in_ruby(command, *args)
73
72
  report_fatal('Failed to run in ruby context, no ruby specified') unless @rvm_prefix
74
- commands = if RVM_COMMANDS.include?(command)
75
- @rvm_prefix + [ command ]
76
- else
77
- @rvm_prefix + [ 'exec', '--', command ]
78
- end
73
+ commands = @rvm_prefix + [ 'exec', '--', command ]
79
74
  args = commands + args
80
- ENV['rvm_is_not_a_shell_function'] = '0'
81
- ENV['rvm_ignore_rvmrc'] = '1'
82
75
  execute('rvm', *args)
83
76
  end
84
77
 
@@ -1,4 +1,4 @@
1
- # Copyright (C) 2011 RightScale, Inc, All Rights Reserved Worldwide.
1
+ # Copyright (C) 2011-2012 RightScale, Inc, All Rights Reserved Worldwide.
2
2
  #
3
3
  # THIS PROGRAM IS CONFIDENTIAL AND PROPRIETARY TO RIGHTSCALE
4
4
  # AND CONSTITUTES A VALUABLE TRADE SECRET. Any unauthorized use,
@@ -21,7 +21,7 @@ module RightConf
21
21
 
22
22
  description 'Installs bundler and runs "bundle install"'
23
23
 
24
- settings :version => 'Version of bundler gem, e.g. "1.0.10"',
24
+ settings :version => 'Version of bundler gem, e.g. "1.0.21"',
25
25
  :exclusions => 'Comma separated list of gem groups to be excluded when installing bundle',
26
26
  :bundle_path => 'Path where bundle should be installed',
27
27
  :gem_path => 'Path to bundler gem, e.g. "vendor/system_gems/cache"'
@@ -13,12 +13,6 @@ module RightConf
13
13
 
14
14
  class RubyConfigurator
15
15
 
16
- # RVM version used to install rubies
17
- RVM_VERSION = '1.10.2'
18
-
19
- # RVM releases URL
20
- RVM_RELEASES_URL = 'https://rvm.beginrescueend.com/releases'
21
-
22
16
  include Configurator
23
17
 
24
18
  register :ruby
@@ -32,6 +26,12 @@ module RightConf
32
26
 
33
27
  validate_has_settings :version
34
28
 
29
+ # RVM version used to install rubies
30
+ RVM_VERSION = '1.10.2'
31
+
32
+ # RVM releases URL
33
+ RVM_RELEASES_URL = 'https://rvm.beginrescueend.com/releases'
34
+
35
35
  # Let configurator run, it is idempotent
36
36
  #
37
37
  # === Return
@@ -92,8 +92,8 @@ module RightConf
92
92
  :abort_on_failure => "Failed to switch to gemset '#{gemset}'")
93
93
  report_success
94
94
  report_check("Checking whether rconf is installed")
95
- res = Command.execute('rconf', '--version')
96
- if res.output =~ /VERSION/
95
+ res = Command.execute_in_ruby('rconf', '--version')
96
+ if res.output =~ /#{RightConf::VERSION}/
97
97
  report_success
98
98
  else
99
99
  report_failure
@@ -13,7 +13,7 @@ module RightConf
13
13
 
14
14
  MAJOR = 0
15
15
  MINOR = 9
16
- BUILD = 12
16
+ BUILD = 17
17
17
 
18
18
  VERSION = [MAJOR, MINOR, BUILD].map(&:to_s).join('.')
19
19
 
metadata CHANGED
@@ -5,9 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 9
8
- - 12
9
- segments_generated: true
10
- version: 0.9.12
8
+ - 17
9
+ version: 0.9.17
11
10
  platform: ruby
12
11
  authors:
13
12
  - Raphael Simon
@@ -15,37 +14,37 @@ autorequire:
15
14
  bindir: bin
16
15
  cert_chain: []
17
16
 
18
- date: 2012-02-05 00:00:00 -08:00
17
+ date: 2012-02-25 00:00:00 -08:00
19
18
  default_executable:
20
19
  dependencies:
21
20
  - !ruby/object:Gem::Dependency
22
- version_requirements: &id001 !ruby/object:Gem::Requirement
21
+ name: rspec
22
+ prerelease: false
23
+ requirement: &id001 !ruby/object:Gem::Requirement
24
+ none: false
23
25
  requirements:
24
26
  - - ~>
25
27
  - !ruby/object:Gem::Version
26
28
  segments:
27
29
  - 2
28
30
  - 5
29
- segments_generated: true
30
31
  version: "2.5"
31
- requirement: *id001
32
- name: rspec
33
- prerelease: false
34
32
  type: :development
33
+ version_requirements: *id001
35
34
  - !ruby/object:Gem::Dependency
36
- version_requirements: &id002 !ruby/object:Gem::Requirement
35
+ name: flexmock
36
+ prerelease: false
37
+ requirement: &id002 !ruby/object:Gem::Requirement
38
+ none: false
37
39
  requirements:
38
40
  - - ~>
39
41
  - !ruby/object:Gem::Version
40
42
  segments:
41
43
  - 0
42
44
  - 9
43
- segments_generated: true
44
45
  version: "0.9"
45
- requirement: *id002
46
- name: flexmock
47
- prerelease: false
48
46
  type: :development
47
+ version_requirements: *id002
49
48
  description: |
50
49
  rconf configures the environment for a given application. rconf reads
51
50
  the content of an application configuration file and installs and/or
@@ -66,6 +65,7 @@ extra_rdoc_files: []
66
65
  files:
67
66
  - .gitignore
68
67
  - Gemfile
68
+ - LICENSE
69
69
  - README.rdoc
70
70
  - Rakefile
71
71
  - bin/rconf
@@ -128,25 +128,25 @@ rdoc_options: []
128
128
  require_paths:
129
129
  - lib
130
130
  required_ruby_version: !ruby/object:Gem::Requirement
131
+ none: false
131
132
  requirements:
132
133
  - - ">="
133
134
  - !ruby/object:Gem::Version
134
135
  segments:
135
136
  - 0
136
- segments_generated: true
137
137
  version: "0"
138
138
  required_rubygems_version: !ruby/object:Gem::Requirement
139
+ none: false
139
140
  requirements:
140
141
  - - ">="
141
142
  - !ruby/object:Gem::Version
142
143
  segments:
143
144
  - 0
144
- segments_generated: true
145
145
  version: "0"
146
146
  requirements: []
147
147
 
148
148
  rubyforge_project: rconf
149
- rubygems_version: 1.3.6
149
+ rubygems_version: 1.3.7
150
150
  signing_key:
151
151
  specification_version: 3
152
152
  summary: Cross platform environment configuration