capistrano-passenger 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b5ee8db6f8a9beab517c5f1eaa2faba15e74be5d
4
- data.tar.gz: 2ba0636361cc9de6032b09e636bcd91c404dac91
3
+ metadata.gz: 2535cc27d1506dd866096d9b13ff57add4243abb
4
+ data.tar.gz: 261d81857ad00a73abfc9560860c4fd6c73013f3
5
5
  SHA512:
6
- metadata.gz: 76c961c0c17ce58ba826ce79662a2fcb5500141d54aeb2cd18a2cf6903ed50c25f3bf263009c5807d16aefd223b8efbb1c5fa53b4ae3bfdc2569ae9e8741a47d
7
- data.tar.gz: ff7bdc114ffef5d3f91726b860c04e0c12c370ff0864d5f838a700435a042fd3c677f4780bd14ab307c0dd8d82c8b4e5fd72f8591e63b290fbeea5551f5b75f9
6
+ metadata.gz: 58c3aa7ca421c0f758b6400c0f289522ca28c514420c55b77f3eb80d2a39cd874c42610abaed2d6c754277c032eaa7501d6f89701cd6a6798fbb6d0977599137
7
+ data.tar.gz: e2d97b9f9d61edee7a593b21d4ea0a5dc07985f116299ef23197fcfd60f05313e2f256e142b2323d4e6f50a061ebac9cd8fe75a57b2a75f6474bbc36868067e3
@@ -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
@@ -1,5 +1,5 @@
1
1
  module Capistrano
2
2
  module Passenger
3
- VERSION = "0.1.0"
3
+ VERSION = "0.1.1"
4
4
  end
5
5
  end
@@ -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(/\APhusion Passenger version (.*)$/)[1]
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
- restart_with_sudo = fetch(:passenger_restart_with_sudo) ? :sudo : nil
24
- arguments = SSHKit::Command.new(*[*fetch(:passenger_restart_command).split(" ").collect(&:to_sym), fetch(:passenger_restart_options)]).to_s
25
- execute *[restart_with_sudo, arguments].compact
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.0
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-10 00:00:00.000000000 Z
11
+ date: 2015-06-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: capistrano