Skip to content
This repository has been archived by the owner on Mar 7, 2020. It is now read-only.

Commit

Permalink
instead of hardcoding the latest passenger release, this does a dir l…
Browse files Browse the repository at this point in the history
…isting and takes the last passenger dir which is the latest when sorted alphabetically

Signed-off-by: Mike Bailey <mike@bailey.net.au>
  • Loading branch information
gfairbrother authored and mbailey committed Jun 14, 2009
1 parent 6b50af1 commit 4986123
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions lib/deprec/recipes/app/passenger.rb
Expand Up @@ -3,11 +3,10 @@
namespace :deprec do
namespace :passenger do

set(:passenger_install_dir) {
set(:passenger_install_dir) {
if ruby_vm_type == :ree
# XXX We can't predict the version included with REE! :-(
# XXX Need to find a workaround
"#{ree_install_dir}/lib/ruby/gems/1.8/gems/passenger-2.2.2"
base_dir = "#{ree_install_dir}/lib/ruby/gems/1.8/gems/"
latest_passenger_version = Dir[base_dir + 'passenger-*'].last
else
'/opt/passenger'
end
Expand Down

0 comments on commit 4986123

Please sign in to comment.