rconf 0.8.18 → 0.8.19

Sign up to get free protection for your applications and to get access to all the features.
@@ -147,24 +147,29 @@ module RightConf
147
147
  report_check('Installing passenger+nginx')
148
148
  # Grrrrr passenger installer expect rake where it's not... HACK
149
149
  ruby_dir = File.dirname(`which ruby`.chomp)
150
- FileUtils.cp(`which rake`.chomp, ruby_dir) unless rake_exist = File.exist?(File.join(ruby_dir, 'rake'))
151
- Command.execute_in_ruby('passenger-install-nginx-module', '--auto',
152
- '--auto-download', '--prefix', install_path,
153
- :abort_on_failure => "Failed to install nginx into #{install_path}")
154
- FileUtils.mkdir_p(File.join(install_path, 'logs'))
155
- File.open(File.join(install_path, 'conf', 'nginx.conf'), 'w') { |f| f.puts(nginx_config) }
156
- if File.writable?('/etc/hosts') && IO.read('/etc/hosts') !~ /hosts_entry/
157
- File.open('/etc/hosts', 'a') { |f| f.puts hosts_entry }
150
+ if ruby_dir !~ /\.rvm/
151
+ post_note 'Please enable rvm before passenger is installed by running ' + 'cd ..;cd -'.blue
152
+ report_failure
158
153
  else
159
- post_note "Please add the following line to your /etc/hosts file:\n#{hosts_entry}\n" +
160
- "\nThe following aliases may help too:\n" +
161
- "alias nrestart='kill -HUP `cat #{pid_path}/nginx.pid`'\n" +
162
- "alias nstart='#{install_path}/sbin/nginx'\n" +
163
- "alias nstop='#{install_path}/sbin/nginx -s stop'"
154
+ FileUtils.cp(`which rake`.chomp, ruby_dir) unless rake_exist = File.exist?(File.join(ruby_dir, 'rake'))
155
+ Command.execute_in_ruby('passenger-install-nginx-module', '--auto',
156
+ '--auto-download', '--prefix', install_path,
157
+ :abort_on_failure => "Failed to install nginx into #{install_path}")
158
+ FileUtils.mkdir_p(File.join(install_path, 'logs'))
159
+ File.open(File.join(install_path, 'conf', 'nginx.conf'), 'w') { |f| f.puts(nginx_config) }
160
+ if File.writable?('/etc/hosts') && IO.read('/etc/hosts') !~ /hosts_entry/
161
+ File.open('/etc/hosts', 'a') { |f| f.puts hosts_entry }
162
+ else
163
+ post_note "Please add the following line to your /etc/hosts file:\n#{hosts_entry}\n" +
164
+ "\nThe following aliases may help too:\n" +
165
+ "alias nrestart='kill -HUP `cat #{pid_path}/nginx.pid`'\n" +
166
+ "alias nstart='#{install_path}/sbin/nginx'\n" +
167
+ "alias nstop='#{install_path}/sbin/nginx -s stop'"
168
+ end
169
+ post_note (post_note || '') + "\nNow open http://right-site.rightscale.local:3000 in your browser"
170
+ File.delete(File.join(ruby_dir, 'rake')) unless rake_exist
171
+ report_success
164
172
  end
165
- post_note (post_note || '') + "\nNow open http://right-site.rightscale.local:3000 in your browser"
166
- File.delete(File.join(ruby_dir, 'rake')) unless rake_exist
167
- report_success
168
173
  end
169
174
 
170
175
  # Hosts entry in /etc/hosts
@@ -13,7 +13,7 @@ module RightConf
13
13
 
14
14
  MAJOR = 0
15
15
  MINOR = 8
16
- BUILD = 18
16
+ BUILD = 19
17
17
 
18
18
  VERSION = [MAJOR, MINOR, BUILD].map(&:to_s).join('.')
19
19
 
@@ -1,7 +1,7 @@
1
1
  # Configuration settings for RightSite
2
2
  ruby do
3
- version 'ruby-1.9.2-p180'
4
- rubygems '1.6.2'
3
+ version 'ruby-1.9.2-p290'
4
+ rubygems '1.3.7'
5
5
  gemset 'rconf'
6
6
  end
7
7
  bundler do
metadata CHANGED
@@ -1,8 +1,12 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rconf
3
3
  version: !ruby/object:Gem::Version
4
- prerelease:
5
- version: 0.8.18
4
+ prerelease: false
5
+ segments:
6
+ - 0
7
+ - 8
8
+ - 19
9
+ version: 0.8.19
6
10
  platform: ruby
7
11
  authors:
8
12
  - Raphael Simon
@@ -10,7 +14,7 @@ autorequire:
10
14
  bindir: bin
11
15
  cert_chain: []
12
16
 
13
- date: 2011-12-20 00:00:00 -08:00
17
+ date: 2011-12-27 00:00:00 -08:00
14
18
  default_executable:
15
19
  dependencies:
16
20
  - !ruby/object:Gem::Dependency
@@ -21,6 +25,9 @@ dependencies:
21
25
  requirements:
22
26
  - - ~>
23
27
  - !ruby/object:Gem::Version
28
+ segments:
29
+ - 2
30
+ - 5
24
31
  version: "2.5"
25
32
  type: :development
26
33
  version_requirements: *id001
@@ -32,6 +39,9 @@ dependencies:
32
39
  requirements:
33
40
  - - ~>
34
41
  - !ruby/object:Gem::Version
42
+ segments:
43
+ - 0
44
+ - 9
35
45
  version: "0.9"
36
46
  type: :development
37
47
  version_requirements: *id002
@@ -121,17 +131,21 @@ required_ruby_version: !ruby/object:Gem::Requirement
121
131
  requirements:
122
132
  - - ">="
123
133
  - !ruby/object:Gem::Version
134
+ segments:
135
+ - 0
124
136
  version: "0"
125
137
  required_rubygems_version: !ruby/object:Gem::Requirement
126
138
  none: false
127
139
  requirements:
128
140
  - - ">="
129
141
  - !ruby/object:Gem::Version
142
+ segments:
143
+ - 0
130
144
  version: "0"
131
145
  requirements: []
132
146
 
133
147
  rubyforge_project: rconf
134
- rubygems_version: 1.6.2
148
+ rubygems_version: 1.3.7
135
149
  signing_key:
136
150
  specification_version: 3
137
151
  summary: Cross platform environment configuration