crossroads_capistrano 1.4.22 → 1.4.23

Sign up to get free protection for your applications and to get access to all the features.
@@ -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.22"
6
+ s.version = "1.4.23"
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"]
@@ -49,7 +49,7 @@ namespace :deploy do
49
49
  end
50
50
  desc "Check for project dependencies"
51
51
  task :check_dependencies, :roles => :db, :only => { :primary => true } do
52
- sudo "cd #{current_path} && bundle exec rake check_dependencies RAILS_ENV=production"
52
+ sudo "cd #{current_path} && bundle exec rake check_dependencies RAILS_ENV=#{rails_env}"
53
53
  end
54
54
  desc "Remove cached-copy (when switching to a new repository, etc.)"
55
55
  task :remove_cached_copy, :roles => :db, :only => { :primary => true } do
@@ -7,7 +7,7 @@ namespace :cache do
7
7
  end
8
8
  desc "Clear memcache"
9
9
  task :memcache, :only => { :primary => true } do
10
- run "cd #{current_path} && bundle exec rake cache:clear RAILS_ENV=production"
10
+ run "cd #{current_path} && bundle exec rake cache:clear RAILS_ENV=#{rails_env}"
11
11
  end
12
12
  desc "Clear view cache (tmp/cache/) used when memcached is unavailable"
13
13
  task :view do
@@ -1,17 +1,17 @@
1
1
  namespace :delayed_job do
2
2
  desc "Stop the delayed_job process"
3
3
  task :stop, :roles => :app do
4
- run "cd #{current_path}; RAILS_ENV=production bundle exec ./script/delayed_job stop"
4
+ run "cd #{current_path}; RAILS_ENV=#{rails_env} bundle exec ./script/delayed_job stop"
5
5
  end
6
6
 
7
7
  desc "Start the delayed_job process"
8
8
  task :start, :roles => :app do
9
- run "cd #{current_path}; RAILS_ENV=production bundle exec ./script/delayed_job start"
9
+ run "cd #{current_path}; RAILS_ENV=#{rails_env} bundle exec ./script/delayed_job start"
10
10
  end
11
11
 
12
12
  desc "Restart the delayed_job process"
13
13
  task :restart, :roles => :app do
14
- run "cd #{current_path}; RAILS_ENV=production bundle exec ./script/delayed_job restart"
14
+ run "cd #{current_path}; RAILS_ENV=#{rails_env} bundle exec ./script/delayed_job restart"
15
15
  end
16
16
 
17
17
  desc "delayed_job status"
@@ -2,17 +2,17 @@ namespace :ts do
2
2
 
3
3
  desc "Index data for Sphinx using Thinking Sphinx's settings"
4
4
  task :in do
5
- run "cd #{current_path} && bundle exec rake ts:in RAILS_ENV=production"
5
+ run "cd #{current_path} && bundle exec rake ts:in RAILS_ENV=#{rails_env}"
6
6
  end
7
7
 
8
8
  desc "Stop sphinx"
9
9
  task :stop do
10
- run "cd #{current_path} && bundle exec rake ts:stop RAILS_ENV=production"
10
+ run "cd #{current_path} && bundle exec rake ts:stop RAILS_ENV=#{rails_env}"
11
11
  end
12
12
 
13
13
  desc "Start sphinx"
14
14
  task :start do
15
- run "cd #{current_path} && bundle exec rake ts:start RAILS_ENV=production"
15
+ run "cd #{current_path} && bundle exec rake ts:start RAILS_ENV=#{rails_env}"
16
16
  run "chown #{httpd_user}:#{httpd_group} #{shared_path}/log/searchd.production.pid"
17
17
  end
18
18
 
@@ -26,7 +26,7 @@ namespace :ts do
26
26
  task :recover do
27
27
  stop
28
28
  run "cd #{shared_path}/db/sphinx/ && rm -rf production"
29
- run "cd #{current_path} && bundle exec rake ts:in RAILS_ENV=production"
29
+ run "cd #{current_path} && bundle exec rake ts:in RAILS_ENV=#{rails_env}"
30
30
  start
31
31
  end
32
32
 
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.22
4
+ version: 1.4.23
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -15,7 +15,7 @@ date: 2011-07-29 00:00:00.000000000Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: capistrano
18
- requirement: &71622260 !ruby/object:Gem::Requirement
18
+ requirement: &70409040 !ruby/object:Gem::Requirement
19
19
  none: false
20
20
  requirements:
21
21
  - - ! '>='
@@ -23,10 +23,10 @@ dependencies:
23
23
  version: 2.6.0
24
24
  type: :runtime
25
25
  prerelease: false
26
- version_requirements: *71622260
26
+ version_requirements: *70409040
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: capistrano-ext
29
- requirement: &71622000 !ruby/object:Gem::Requirement
29
+ requirement: &70408790 !ruby/object:Gem::Requirement
30
30
  none: false
31
31
  requirements:
32
32
  - - ! '>='
@@ -34,10 +34,10 @@ dependencies:
34
34
  version: 1.2.1
35
35
  type: :runtime
36
36
  prerelease: false
37
- version_requirements: *71622000
37
+ version_requirements: *70408790
38
38
  - !ruby/object:Gem::Dependency
39
39
  name: capistrano_colors
40
- requirement: &71621770 !ruby/object:Gem::Requirement
40
+ requirement: &70408560 !ruby/object:Gem::Requirement
41
41
  none: false
42
42
  requirements:
43
43
  - - ! '>='
@@ -45,10 +45,10 @@ dependencies:
45
45
  version: 0.5.4
46
46
  type: :runtime
47
47
  prerelease: false
48
- version_requirements: *71621770
48
+ version_requirements: *70408560
49
49
  - !ruby/object:Gem::Dependency
50
50
  name: rvm
51
- requirement: &71621490 !ruby/object:Gem::Requirement
51
+ requirement: &70408310 !ruby/object:Gem::Requirement
52
52
  none: false
53
53
  requirements:
54
54
  - - ! '>='
@@ -56,7 +56,7 @@ dependencies:
56
56
  version: 1.6.9
57
57
  type: :runtime
58
58
  prerelease: false
59
- version_requirements: *71621490
59
+ version_requirements: *70408310
60
60
  description: A Crossroads Foundation collection of generic capistrano recipes.
61
61
  email:
62
62
  - it_dept@crossroads.org.hk