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"
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
- begin
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 respond_to?(:rvm_ruby_string) # Deploying with RVM
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 respond_to?(:yum_packages)
11
+ yum.install({:base => yum_packages}, :stable ) if exists?(:yum_packages)
12
12
  gemrc.setup
13
13
  bundler.setup
14
14
  deploy.setup
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: crossroads_capistrano
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.6
4
+ version: 1.4.7
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: