pludoni-capistrano 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile CHANGED
@@ -1,4 +1,5 @@
1
1
  source 'https://rubygems.org'
2
2
 
3
+ gem "rake"
3
4
  # Specify your gem's dependencies in pludoni-capistrano.gemspec
4
5
  gemspec
@@ -1,15 +1,25 @@
1
1
  Capistrano::Configuration.instance.load do
2
2
 
3
- namespace :deploy do
4
- task :new_sphinx, :roles => [:app] do
5
- thinking_sphinx.stop
6
- run "ln -nfs #{shared_path}/db/sphinx #{release_path}/db/sphinx"
7
- thinking_sphinx.configure
8
- #thinking_sphinx.start
3
+ require 'thinking_sphinx/deploy/capistrano'
4
+ if ENV["SPHINX"] == "yes"
5
+ namespace :deploy do
6
+ task :new_sphinx, :roles => [:app] do
7
+ thinking_sphinx.stop
8
+ run "ln -nfs #{shared_path}/db/sphinx #{release_path}/db/sphinx"
9
+ thinking_sphinx.configure
10
+ #thinking_sphinx.start
11
+ end
12
+ end
13
+ after 'deploy:update_code', 'deploy:new_sphinx'
14
+ after 'deploy:update_code', 'thinking_sphinx:start'
15
+ after 'deploy:setup', 'thininking_sphinx:setup'
16
+ else
17
+ namespace :deploy do
18
+ task :new_sphinx, :roles => [:app] do
19
+ run "ln -nfs #{shared_path}/db/sphinx #{release_path}/db/sphinx"
20
+ rake "thinking_sphinx:index"
21
+ end
9
22
  end
23
+ after 'deploy:update_code', 'deploy:new_sphinx'
10
24
  end
11
- require 'thinking_sphinx/deploy/capistrano'
12
- after 'deploy:update_code', 'deploy:new_sphinx'
13
- after 'deploy:update_code', 'thinking_sphinx:start'
14
- after 'deploy:setup', 'thininking_sphinx:setup'
15
25
  end
@@ -1,5 +1,5 @@
1
1
  module Pludoni
2
2
  module Capistrano
3
- VERSION = "0.0.3"
3
+ VERSION = "0.0.4"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pludoni-capistrano
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-06-29 00:00:00.000000000 Z
12
+ date: 2012-09-27 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: capistrano_colors
16
- requirement: &7999140 !ruby/object:Gem::Requirement
16
+ requirement: !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,10 +21,15 @@ dependencies:
21
21
  version: '0'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *7999140
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ! '>='
28
+ - !ruby/object:Gem::Version
29
+ version: '0'
25
30
  - !ruby/object:Gem::Dependency
26
31
  name: capistrano
27
- requirement: &7998080 !ruby/object:Gem::Requirement
32
+ requirement: !ruby/object:Gem::Requirement
28
33
  none: false
29
34
  requirements:
30
35
  - - ! '>='
@@ -32,10 +37,15 @@ dependencies:
32
37
  version: '0'
33
38
  type: :runtime
34
39
  prerelease: false
35
- version_requirements: *7998080
40
+ version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
42
+ requirements:
43
+ - - ! '>='
44
+ - !ruby/object:Gem::Version
45
+ version: '0'
36
46
  - !ruby/object:Gem::Dependency
37
47
  name: rvm-capistrano
38
- requirement: &7997520 !ruby/object:Gem::Requirement
48
+ requirement: !ruby/object:Gem::Requirement
39
49
  none: false
40
50
  requirements:
41
51
  - - ! '>='
@@ -43,7 +53,12 @@ dependencies:
43
53
  version: '0'
44
54
  type: :runtime
45
55
  prerelease: false
46
- version_requirements: *7997520
56
+ version_requirements: !ruby/object:Gem::Requirement
57
+ none: false
58
+ requirements:
59
+ - - ! '>='
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
47
62
  description: Some common tasks for capistrano
48
63
  email:
49
64
  - stefan.wienert@pludoni.de
@@ -82,15 +97,21 @@ required_ruby_version: !ruby/object:Gem::Requirement
82
97
  - - ! '>='
83
98
  - !ruby/object:Gem::Version
84
99
  version: '0'
100
+ segments:
101
+ - 0
102
+ hash: -820306642452729882
85
103
  required_rubygems_version: !ruby/object:Gem::Requirement
86
104
  none: false
87
105
  requirements:
88
106
  - - ! '>='
89
107
  - !ruby/object:Gem::Version
90
108
  version: '0'
109
+ segments:
110
+ - 0
111
+ hash: -820306642452729882
91
112
  requirements: []
92
113
  rubyforge_project:
93
- rubygems_version: 1.8.15
114
+ rubygems_version: 1.8.24
94
115
  signing_key:
95
116
  specification_version: 3
96
117
  summary: Some common tasks for capistrano