crossroads_capistrano 1.4.11 → 1.4.12

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.11"
6
+ s.version = "1.4.12"
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"]
@@ -51,6 +51,10 @@ namespace :deploy do
51
51
  task :check_dependencies, :roles => :db, :only => { :primary => true } do
52
52
  sudo "cd #{current_path} && RAILS_ENV=production rake check_dependencies"
53
53
  end
54
+ desc "Remove cached-copy (when switching to a new repository, etc.)"
55
+ task :remove_cached_copy, :roles => :db, :only => { :primary => true } do
56
+ sudo "rm -rf #{shared_path}/cached-copy"
57
+ end
54
58
  end
55
59
 
56
60
 
@@ -5,7 +5,7 @@ namespace :deploy do
5
5
  # Following line 'right-aligns' the branch string.
6
6
  branch_indent = " "*(i=10-branch.size;i<0 ? 0 : i) << branch.capitalize
7
7
  current_is_deployed = current == latest
8
- puts "\n * \033[0;32m== Showing revisions and diffs for [\033[1;32m#{application}#{exists?(:stage) ? ' ' << stage : ''}\033[0;32m]\033[0m\n\n"
8
+ puts "\n * \033[0;32m== Showing revisions and diffs for [\033[1;32m#{application}#{exists?(:stage) ? ' ' << stage.to_s : ''}\033[0;32m]\033[0m\n\n"
9
9
  puts " \033[1;33m#{branch_indent} Branch: \033[1;37m#{latest}\033[0m"
10
10
  puts " \033[#{current == latest ? 1 : 0};33mDeployed Revision: \033[#{current == latest ? 1 : 0};37m#{current}\033[0m"
11
11
  puts " \033[#{previous == latest ? 1 : 0};33mPrevious Revision: \033[#{previous == latest ? 1 : 0};37m#{previous}\033[0m\n\n"
@@ -56,7 +56,7 @@ end
56
56
  namespace :netrc do
57
57
  desc "Setup ~/.netrc file for internal git https auth"
58
58
  task :setup do
59
- if !remote_file_exists?("~/.netrc")
59
+ if !remote_file_exists?("~/.netrc") || ARGV.include?("netrc:setup")
60
60
  puts "\n ** == Configuring ~/.netrc ..."
61
61
  puts " ** (Enter 's' to skip this file.)\n\n"
62
62
  prompt_with_default("Netrc Machine", :netrc_machine, "svn.globalhand.org")
@@ -1,17 +1,7 @@
1
1
  #
2
2
  # Updates the crontab using wheneverize
3
3
  #
4
+ require 'whenever/capistrano'
4
5
 
5
- namespace :whenever do
6
- desc "Update the crontab file"
7
- task :update, :roles => :db do
8
- run "cd #{current_path} && bundle exec whenever --update-crontab #{application}"
9
- end
10
- desc "Clear the crontab file"
11
- task :clear, :roles => :db do
12
- run "cd #{current_path} && bundle exec whenever --clear-crontab #{application}"
13
- end
14
- end
15
-
16
- after "deploy:symlink", "whenever:update"
6
+ set :whenever_command, "bundle exec whenever" if fetch(:bundler, true)
17
7
 
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.11
4
+ version: 1.4.12
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: