capones_recipes 1.11.1 → 1.11.2

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.
@@ -4,7 +4,7 @@ Capistrano::Configuration.instance(true).load do
4
4
  namespace :airbrake do
5
5
  desc "Sets the symlink to shared/config/initializers/airbrake.rb"
6
6
  task :symlink do
7
- run "ln -nfs #{shared_path}/config/initializers/airbrake.rb #{release_path}/config/initializers/airbrake.rb"
7
+ run "ln -nfs #{shared_path}/config/initializers/airbrake.rb #{latest_release}/config/initializers/airbrake.rb"
8
8
  end
9
9
  end
10
10
  end
@@ -10,7 +10,7 @@ Capistrano::Configuration.instance.load do
10
10
 
11
11
  desc "Make symlink for uploads directory"
12
12
  task :symlink do
13
- run "ln -nfs #{shared_path}/uploads #{release_path}/uploads"
13
+ run "ln -nfs #{shared_path}/uploads #{latest_release}/uploads"
14
14
  end
15
15
  end
16
16
  end
@@ -23,7 +23,7 @@ Capistrano::Configuration.instance.load do
23
23
 
24
24
  desc "Make symlink for shared database"
25
25
  task :symlink do
26
- run "ln -nfs #{shared_path}/db/#{rails_env}.sqlite3 #{release_path}/db/#{rails_env}.sqlite3"
26
+ run "ln -nfs #{shared_path}/db/#{rails_env}.sqlite3 #{latest_release}/db/#{rails_env}.sqlite3"
27
27
  end
28
28
  end
29
29
  end
@@ -5,7 +5,7 @@ Capistrano::Configuration.instance.load do
5
5
  namespace :email do
6
6
  desc "Make symlink for email config"
7
7
  task :symlink, :roles => :app do
8
- run "ln -nfs #{shared_path}/config/initializers/email.rb #{release_path}/config/initializers/email.rb"
8
+ run "ln -nfs #{shared_path}/config/initializers/email.rb #{latest_release}/config/initializers/email.rb"
9
9
  end
10
10
  end
11
11
  end
@@ -10,7 +10,7 @@ Capistrano::Configuration.instance.load do
10
10
 
11
11
  desc "Make symlink for shared uploads"
12
12
  task :symlink do
13
- run "ln -nfs #{shared_path}/uploads #{release_path}/public/uploads"
13
+ run "ln -nfs #{shared_path}/uploads #{latest_release}/public/uploads"
14
14
  end
15
15
  end
16
16
  end
@@ -9,7 +9,7 @@ Capistrano::Configuration.instance.load do
9
9
 
10
10
  desc "Make symlink for shared application yaml"
11
11
  task :symlink do
12
- run "ln -nfs #{shared_path}/config/newrelic.yml #{release_path}/config/newrelic.yml"
12
+ run "ln -nfs #{shared_path}/config/newrelic.yml #{latest_release}/config/newrelic.yml"
13
13
  end
14
14
  end
15
15
  end
@@ -10,7 +10,7 @@ Capistrano::Configuration.instance.load do
10
10
 
11
11
  desc "Make symlink for shared database yaml"
12
12
  task :symlink do
13
- run "ln -nfs #{shared_path}/config/database.yml #{release_path}/config/database.yml"
13
+ run "ln -nfs #{shared_path}/config/database.yml #{latest_release}/config/database.yml"
14
14
  end
15
15
 
16
16
  task :rake, :roles => :app do
@@ -4,7 +4,7 @@ Capistrano::Configuration.instance.load do
4
4
  namespace :restful_authentication do
5
5
  desc "Make symlink for site key"
6
6
  task :symlink do
7
- run "ln -nfs #{shared_path}/config/initializers/site_keys.rb #{release_path}/config/initializers/site_keys.rb"
7
+ run "ln -nfs #{shared_path}/config/initializers/site_keys.rb #{latest_release}/config/initializers/site_keys.rb"
8
8
  end
9
9
  end
10
10
 
@@ -10,7 +10,7 @@ Capistrano::Configuration.instance.load do
10
10
 
11
11
  desc "Make symlink for shared application yaml"
12
12
  task :symlink do
13
- run "ln -nfs #{shared_path}/config/application.yml #{release_path}/config/application.yml"
13
+ run "ln -nfs #{shared_path}/config/application.yml #{latest_release}/config/application.yml"
14
14
  end
15
15
  end
16
16
  end
@@ -49,7 +49,7 @@ Capistrano::Configuration.instance.load do
49
49
  purge_old_backups "#{base}"
50
50
  else
51
51
  logger.info "Create '#{syncdir}' directory"
52
- run "mkdir #{current_path}/#{syncdir}"
52
+ run "mkdir #{latest_release}/#{syncdir}"
53
53
  end
54
54
 
55
55
  # Sync directory up
@@ -5,6 +5,7 @@ Capistrano::Configuration.instance.load do
5
5
  before "thinking_sphinx:symlink", "thinking_sphinx:setup"
6
6
  after "deploy:finalize_update", "thinking_sphinx:symlink"
7
7
  before "deploy:restart", "thinking_sphinx:rebuild"
8
+ after "sync:up:db", "thinking_sphinx:rebuild"
8
9
 
9
10
  namespace :thinking_sphinx do
10
11
  desc "Prepare for sphinx config"
@@ -16,9 +17,9 @@ Capistrano::Configuration.instance.load do
16
17
 
17
18
  desc "Make symlink for sphinx configs and data"
18
19
  task :symlink, :roles => :app do
19
- run "ln -nfs #{shared_path}/config/sphinx #{release_path}/config/sphinx"
20
- run "ln -nfs #{shared_path}/db/sphinx #{release_path}/db/sphinx"
21
- run "ln -nfs #{shared_path}/tmp/sockets #{release_path}/tmp/sockets"
20
+ run "ln -nfs #{shared_path}/config/sphinx #{latest_release}/config/sphinx"
21
+ run "ln -nfs #{shared_path}/db/sphinx #{latest_release}/db/sphinx"
22
+ run "ln -nfs #{shared_path}/tmp/sockets #{latest_release}/tmp/sockets"
22
23
  end
23
24
  end
24
25
  end
@@ -1,3 +1,3 @@
1
1
  module CaponesRecipes
2
- VERSION = "1.11.1"
2
+ VERSION = "1.11.2"
3
3
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capones_recipes
3
3
  version: !ruby/object:Gem::Version
4
- hash: 57
5
- prerelease:
4
+ hash: 63
5
+ prerelease: false
6
6
  segments:
7
7
  - 1
8
8
  - 11
9
- - 1
10
- version: 1.11.1
9
+ - 2
10
+ version: 1.11.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - Roman Simecek (CyT)
@@ -16,7 +16,8 @@ autorequire:
16
16
  bindir: bin
17
17
  cert_chain: []
18
18
 
19
- date: 2011-12-09 00:00:00 Z
19
+ date: 2011-12-12 00:00:00 +01:00
20
+ default_executable:
20
21
  dependencies:
21
22
  - !ruby/object:Gem::Dependency
22
23
  name: capistrano
@@ -156,6 +157,7 @@ files:
156
157
  - lib/capones_recipes/tasks/thinking_sphinx.rb
157
158
  - lib/capones_recipes/tasks/utilities.rb
158
159
  - lib/capones_recipes/version.rb
160
+ has_rdoc: true
159
161
  homepage: http://github.com/raskhadafi/capones-recipes
160
162
  licenses:
161
163
  - MIT
@@ -185,7 +187,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
185
187
  requirements: []
186
188
 
187
189
  rubyforge_project:
188
- rubygems_version: 1.8.10
190
+ rubygems_version: 1.3.7
189
191
  signing_key:
190
192
  specification_version: 3
191
193
  summary: Some capistrano recipes for use.