capistrano-passenger 0.1.0 → 0.1.1
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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/lib/capistrano/passenger/version.rb +1 -1
- data/lib/capistrano/tasks/passenger.cap +7 -4
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2535cc27d1506dd866096d9b13ff57add4243abb
|
4
|
+
data.tar.gz: 261d81857ad00a73abfc9560860c4fd6c73013f3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 58c3aa7ca421c0f758b6400c0f289522ca28c514420c55b77f3eb80d2a39cd874c42610abaed2d6c754277c032eaa7501d6f89701cd6a6798fbb6d0977599137
|
7
|
+
data.tar.gz: e2d97b9f9d61edee7a593b21d4ea0a5dc07985f116299ef23197fcfd60f05313e2f256e142b2323d4e6f50a061ebac9cd8fe75a57b2a75f6474bbc36868067e3
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,8 @@
|
|
1
|
+
# 0.1.1 (30 June 2015)
|
2
|
+
* Bug fixes:
|
3
|
+
* When detecting passenger version, we account for the fact the the version may not be on the first line of the captured output (@pzgz, capistrano/passenger#20)
|
4
|
+
* When executing the restart command without sudo, we make sure the first argument to execute is still a Symbol so that the command is executed in the appropriate directory (@FooBarWidget, capistrano/passenger#27)
|
5
|
+
|
1
6
|
# 0.1.0 (3 June 2015)
|
2
7
|
|
3
8
|
* BREAKING CHANGES
|
@@ -12,7 +12,7 @@ namespace :passenger do
|
|
12
12
|
with fetch(:passenger_environment_variables) do
|
13
13
|
within(release_path) do
|
14
14
|
if restart_with_touch.nil?
|
15
|
-
passenger_version = capture(:passenger, '-v').match(
|
15
|
+
passenger_version = capture(:passenger, '-v').match(/^Phusion Passenger (Enterprise )?version (.*)$/)[2]
|
16
16
|
restart_with_touch = Gem::Version.new(passenger_version) < Gem::Version.new('4.0.33')
|
17
17
|
end
|
18
18
|
|
@@ -20,9 +20,12 @@ namespace :passenger do
|
|
20
20
|
execute :mkdir, '-p', release_path.join('tmp')
|
21
21
|
execute :touch, release_path.join('tmp/restart.txt')
|
22
22
|
else
|
23
|
-
|
24
|
-
|
25
|
-
|
23
|
+
restart_command = fetch(:passenger_restart_command).split(" ").collect(&:to_sym) << fetch(:passenger_restart_options)
|
24
|
+
if fetch(:passenger_restart_with_sudo)
|
25
|
+
# We preprocess the command with SSHKit::Command to allow 'passenger-config' to be transformed with the command map.
|
26
|
+
restart_command = [:sudo, SSHKit::Command.new(*restart_command).to_s]
|
27
|
+
end
|
28
|
+
execute *restart_command
|
26
29
|
end
|
27
30
|
end
|
28
31
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: capistrano-passenger
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Isaac Betesh
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-06-
|
11
|
+
date: 2015-06-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: capistrano
|