rubber 2.0.0.pre10 → 2.0.0.pre11
Sign up to get free protection for your applications and to get access to all the features.
data/lib/rubber/commands/cron.rb
CHANGED
@@ -95,8 +95,10 @@ module Rubber
|
|
95
95
|
|
96
96
|
# set current directory to rootdir
|
97
97
|
Dir.chdir(rootdir)
|
98
|
-
|
99
|
-
|
98
|
+
|
99
|
+
# Open4 forks, which JRuby doesn't support. But JRuby added a popen4-compatible method on the IO class,
|
100
|
+
# so we can use that instead.
|
101
|
+
status = (defined?(JRUBY_VERSION) ? IO : Open4).popen4(*cmd) do |pid, stdin, stdout, stderr|
|
100
102
|
File.open(log, "w") do | fh |
|
101
103
|
threads = []
|
102
104
|
threads << Thread.new(stdout) do |stdout|
|
@@ -408,7 +408,7 @@ namespace :rubber do
|
|
408
408
|
# graphite web app)
|
409
409
|
if instance_item.role_names.include?('web_tools')
|
410
410
|
Array(rubber_env.web_tools_proxies).each do |name, settings|
|
411
|
-
provider.update("#{name}.#{instance_item.
|
411
|
+
provider.update("#{name}.#{instance_item.name}", instance_item.external_ip)
|
412
412
|
end
|
413
413
|
end
|
414
414
|
end
|
@@ -426,7 +426,7 @@ namespace :rubber do
|
|
426
426
|
# graphite web app)
|
427
427
|
if instance_item.role_names.include?('web_tools')
|
428
428
|
Array(rubber_env.web_tools_proxies).each do |name, settings|
|
429
|
-
provider.destroy("#{name}.#{instance_item.
|
429
|
+
provider.destroy("#{name}.#{instance_item.name}")
|
430
430
|
end
|
431
431
|
end
|
432
432
|
end
|
data/lib/rubber/version.rb
CHANGED
@@ -22,7 +22,7 @@ namespace :rubber do
|
|
22
22
|
TMPDIR=`mktemp -d` || exit 1
|
23
23
|
cd $TMPDIR
|
24
24
|
echo 'Downloading'
|
25
|
-
wget -qN http://
|
25
|
+
wget -qN http://nginx.org/download/nginx-#{rubber_env.nginx_version}.tar.gz
|
26
26
|
echo 'Unpacking'
|
27
27
|
tar xf nginx-#{rubber_env.nginx_version}.tar.gz
|
28
28
|
passenger-install-nginx-module --auto --prefix=/opt/nginx --nginx-source-dir=$TMPDIR/nginx-#{rubber_env.nginx_version} --extra-configure-flags="--conf-path=/etc/nginx/nginx.conf --error-log-path=/var/log/nginx/error.log --http-log-path=/var/log/nginx/access.log --lock-path=/var/lock/nginx.lock --pid-path=/var/run/nginx.pid --sbin-path=/usr/sbin/nginx --with-http_gzip_static_module"
|
@@ -1,5 +1,5 @@
|
|
1
|
-
passenger_version: 3.0.
|
2
|
-
nginx_version: 1.0.
|
1
|
+
passenger_version: 3.0.11
|
2
|
+
nginx_version: 1.0.11
|
3
3
|
passenger_root: "#{rvm_gem_home}/gems/passenger-#{passenger_version}"
|
4
4
|
passenger_ruby: "#{rvm_prefix}/wrappers/#{`bash -l -c 'rvm strings #{rvm_ruby}'`.strip}/ruby"
|
5
5
|
passenger_lib: "#{passenger_root}/ext/nginx"
|
@@ -16,5 +16,5 @@ use_ssl_key: false
|
|
16
16
|
|
17
17
|
roles:
|
18
18
|
passenger_nginx:
|
19
|
-
packages: [libcurl4-openssl-dev]
|
19
|
+
packages: [libcurl4-openssl-dev, libpcre3-dev]
|
20
20
|
gems: [[passenger, "#{passenger_version}"]]
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rubber
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.0.
|
4
|
+
version: 2.0.0.pre11
|
5
5
|
prerelease: 6
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2012-04-
|
13
|
+
date: 2012-04-08 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: capistrano
|
@@ -569,7 +569,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
569
569
|
version: '0'
|
570
570
|
segments:
|
571
571
|
- 0
|
572
|
-
hash:
|
572
|
+
hash: 4313840116415290415
|
573
573
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
574
574
|
none: false
|
575
575
|
requirements:
|