crossroads_capistrano 1.4.6 → 1.4.7
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.
|
@@ -3,7 +3,7 @@ $:.push File.expand_path("../lib", __FILE__)
|
|
|
3
3
|
|
|
4
4
|
Gem::Specification.new do |s|
|
|
5
5
|
s.name = "crossroads_capistrano"
|
|
6
|
-
s.version = "1.4.
|
|
6
|
+
s.version = "1.4.7"
|
|
7
7
|
s.platform = Gem::Platform::RUBY
|
|
8
8
|
s.authors = ["Steve Kenworthy", "Ben Tillman", "Nathan Broadbent"]
|
|
9
9
|
s.email = ["it_dept@crossroads.org.hk"]
|
|
@@ -7,10 +7,7 @@ namespace :deploy do
|
|
|
7
7
|
if ARGV.include?("-n")
|
|
8
8
|
puts "\n ** Dry run, not notifying Hoptoad.\n\n"
|
|
9
9
|
else
|
|
10
|
-
|
|
11
|
-
require 'active_support/core_ext/string'
|
|
12
|
-
rescue LoadError
|
|
13
|
-
end
|
|
10
|
+
require 'active_support/core_ext/string' rescue Exception
|
|
14
11
|
require 'hoptoad_notifier'
|
|
15
12
|
require File.join(rails_root,'config','initializers','hoptoad')
|
|
16
13
|
require 'hoptoad_tasks'
|
|
@@ -49,7 +49,7 @@ namespace :passenger do
|
|
|
49
49
|
set :httpd_site_conf_path, "/etc/httpd/sites-enabled/010-#{application}-#{stage}.conf" unless exists?(:httpd_site_conf_path)
|
|
50
50
|
set :passenger_conf_path, "/etc/httpd/mods-enabled/passenger.conf" unless exists?(:passenger_conf_path)
|
|
51
51
|
|
|
52
|
-
if
|
|
52
|
+
if exists?(:rvm_ruby_string) # Deploying with RVM
|
|
53
53
|
ruby_root = "/usr/local/rvm/wrappers/#{rvm_ruby_string}/ruby"
|
|
54
54
|
passenger_root = "/usr/local/rvm/gems/#{rvm_ruby_string}/gems/passenger-#{passenger_version}"
|
|
55
55
|
else # System Ruby
|
|
@@ -8,7 +8,7 @@ namespace :stack do
|
|
|
8
8
|
desc "Setup operating system and rails environment"
|
|
9
9
|
task :setup do
|
|
10
10
|
yum.update
|
|
11
|
-
yum.install({:base => yum_packages}, :stable ) if
|
|
11
|
+
yum.install({:base => yum_packages}, :stable ) if exists?(:yum_packages)
|
|
12
12
|
gemrc.setup
|
|
13
13
|
bundler.setup
|
|
14
14
|
deploy.setup
|