rconf 0.8.18 → 0.8.19
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/lib/rconf/configurators/passenger_configurator.rb +21 -16
- data/lib/rconf/version.rb +1 -1
- data/rconf.rconf +2 -2
- metadata +18 -4
@@ -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
|
-
|
151
|
-
|
152
|
-
|
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
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
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
|
data/lib/rconf/version.rb
CHANGED
data/rconf.rconf
CHANGED
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
|
-
|
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-
|
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.
|
148
|
+
rubygems_version: 1.3.7
|
135
149
|
signing_key:
|
136
150
|
specification_version: 3
|
137
151
|
summary: Cross platform environment configuration
|