capones_recipes 1.13.1 → 1.13.2
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/capones_recipes/tasks/airbrake/setup.rb +1 -1
- data/lib/capones_recipes/tasks/airbrake/symlink.rb +1 -1
- data/lib/capones_recipes/tasks/carrier_wave.rb +2 -2
- data/lib/capones_recipes/tasks/email.rb +2 -2
- data/lib/capones_recipes/tasks/new_relic.rb +2 -2
- data/lib/capones_recipes/tasks/rails/database.rb +3 -3
- data/lib/capones_recipes/tasks/rails/logs.rb +1 -1
- data/lib/capones_recipes/tasks/restful_authentication.rb +4 -4
- data/lib/capones_recipes/tasks/sync/symlink.rb +1 -1
- data/lib/capones_recipes/tasks/sync/sync.rb +1 -1
- data/lib/capones_recipes/version.rb +1 -1
- metadata +4 -5
@@ -3,7 +3,7 @@ require File.expand_path(File.dirname(__FILE__) + '/../utilities')
|
|
3
3
|
Capistrano::Configuration.instance.load do
|
4
4
|
namespace :airbrake do
|
5
5
|
desc "Creates the air brake initializer with the custom API key."
|
6
|
-
task :prepare_config do
|
6
|
+
task :prepare_config, :roles => :app do
|
7
7
|
api_key = Utilities.ask('Please insert the API key.', '')
|
8
8
|
initializer_template = File.expand_path(File.dirname(__FILE__) + '/templates/airbrake.rb')
|
9
9
|
put Utilities.init_file(initializer_template, "<%%>", api_key), "#{shared_path}/config/initializers/airbrake.rb"
|
@@ -3,7 +3,7 @@ Capistrano::Configuration.instance(true).load do
|
|
3
3
|
|
4
4
|
namespace :airbrake do
|
5
5
|
desc "Sets the symlink to shared/config/initializers/airbrake.rb"
|
6
|
-
task :symlink do
|
6
|
+
task :symlink, :roles => :app do
|
7
7
|
run "ln -nfs #{shared_path}/config/initializers/airbrake.rb #{latest_release}/config/initializers/airbrake.rb"
|
8
8
|
end
|
9
9
|
end
|
@@ -4,12 +4,12 @@ Capistrano::Configuration.instance.load do
|
|
4
4
|
|
5
5
|
namespace :carrier_wave do
|
6
6
|
desc "Create upload directory in capistrano shared path"
|
7
|
-
task :setup do
|
7
|
+
task :setup, :roles => :app do
|
8
8
|
run "mkdir -p #{shared_path}/uploads"
|
9
9
|
end
|
10
10
|
|
11
11
|
desc "Make symlink for uploads directory"
|
12
|
-
task :symlink do
|
12
|
+
task :symlink, :roles => :app do
|
13
13
|
run "ln -nfs #{shared_path}/uploads #{latest_release}/uploads"
|
14
14
|
end
|
15
15
|
end
|
@@ -5,12 +5,12 @@ Capistrano::Configuration.instance.load do
|
|
5
5
|
|
6
6
|
namespace :email do
|
7
7
|
desc "Create shared directories"
|
8
|
-
task :prepare_config do
|
8
|
+
task :prepare_config, :roles => :app do
|
9
9
|
run "mkdir -p #{shared_path}/config/initializers"
|
10
10
|
end
|
11
11
|
|
12
12
|
desc "Configure email.yml"
|
13
|
-
task :configure, :
|
13
|
+
task :configure, :roles => :app do
|
14
14
|
default_template = <<-EOF
|
15
15
|
ActionMailer::Base.delivery_method = :sendmail
|
16
16
|
EOF
|
@@ -3,12 +3,12 @@ Capistrano::Configuration.instance.load do
|
|
3
3
|
|
4
4
|
namespace :new_relic do
|
5
5
|
desc "Creates newrelic configuration based on example"
|
6
|
-
task :prepare_config do
|
6
|
+
task :prepare_config, :roles => :app do
|
7
7
|
upload "config/newrelic.yml.example", "#{shared_path}/config/newrelic.yml", :via => :scp
|
8
8
|
end
|
9
9
|
|
10
10
|
desc "Make symlink for shared application yaml"
|
11
|
-
task :symlink do
|
11
|
+
task :symlink, :roles => :app do
|
12
12
|
run "ln -nfs #{shared_path}/config/newrelic.yml #{latest_release}/config/newrelic.yml"
|
13
13
|
end
|
14
14
|
end
|
@@ -6,7 +6,7 @@ Capistrano::Configuration.instance.load do
|
|
6
6
|
|
7
7
|
namespace :db do
|
8
8
|
desc "Create shared directories"
|
9
|
-
task :prepare_config do
|
9
|
+
task :prepare_config, :roles => :app do
|
10
10
|
run "mkdir -p #{shared_path}/db"
|
11
11
|
run "mkdir -p #{shared_path}/config"
|
12
12
|
end
|
@@ -30,7 +30,7 @@ Capistrano::Configuration.instance.load do
|
|
30
30
|
capistrano-ext/multistaging to avoid multiple db:configure calls
|
31
31
|
when running deploy:configure for all stages one by one.
|
32
32
|
DESC
|
33
|
-
task :configure, :
|
33
|
+
task :configure, :roles => :app do
|
34
34
|
|
35
35
|
default_template = <<-EOF
|
36
36
|
base: &base
|
@@ -56,7 +56,7 @@ Capistrano::Configuration.instance.load do
|
|
56
56
|
end
|
57
57
|
|
58
58
|
desc "Make symlink for shared database yaml"
|
59
|
-
task :symlink do
|
59
|
+
task :symlink, :roles => :app do
|
60
60
|
run "ln -nfs #{shared_path}/config/database.yml #{latest_release}/config/database.yml"
|
61
61
|
end
|
62
62
|
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Capistrano::Configuration.instance.load do
|
2
2
|
desc "Watch the log on the application server."
|
3
|
-
task :watch_logs, :role =>
|
3
|
+
task :watch_logs, :role => :app do
|
4
4
|
log_file = "#{shared_path}/log/#{rails_env}.log"
|
5
5
|
|
6
6
|
run "tail -f #{log_file}" do |channel, stream, data|
|
@@ -5,12 +5,12 @@ Capistrano::Configuration.instance.load do
|
|
5
5
|
|
6
6
|
namespace :restful_authentication do
|
7
7
|
desc "Create shared directories"
|
8
|
-
task :prepare_config do
|
8
|
+
task :prepare_config, :roles => :app do
|
9
9
|
run "mkdir -p #{shared_path}/config/initializers"
|
10
10
|
end
|
11
11
|
|
12
12
|
desc "Make symlink for site key"
|
13
|
-
task :symlink do
|
13
|
+
task :symlink, :role => :app do
|
14
14
|
run "ln -nfs #{shared_path}/config/initializers/site_keys.rb #{latest_release}/config/initializers/site_keys.rb"
|
15
15
|
end
|
16
16
|
|
@@ -23,14 +23,14 @@ Capistrano::Configuration.instance.load do
|
|
23
23
|
namespace :sync do
|
24
24
|
namespace :down do
|
25
25
|
desc "Sync down site key"
|
26
|
-
task :restful_authentication do
|
26
|
+
task :restful_authentication, :roles => :app do
|
27
27
|
download "#{shared_path}/config/initializers/site_keys.rb", "config/initializers/site_keys.rb"
|
28
28
|
end
|
29
29
|
end
|
30
30
|
|
31
31
|
namespace :up do
|
32
32
|
desc "Sync up site key"
|
33
|
-
task :restful_authentication do
|
33
|
+
task :restful_authentication, :roles => :app do
|
34
34
|
upload "config/initializers/site_keys.rb", "#{shared_path}/config/initializers/site_keys.rb"
|
35
35
|
end
|
36
36
|
end
|
@@ -7,7 +7,7 @@ Capistrano::Configuration.instance.load do
|
|
7
7
|
after "sync:up:fs", "sync:symlink"
|
8
8
|
|
9
9
|
desc "Sets the symlink to sync directories"
|
10
|
-
task :symlink do
|
10
|
+
task :symlink, :roles => :app do
|
11
11
|
Array(fetch(:sync_directories, [])).each do |syncdir|
|
12
12
|
unless File.directory? "#{syncdir}"
|
13
13
|
logger.info "Create '#{syncdir}' directory"
|
@@ -17,7 +17,7 @@ Capistrano::Configuration.instance.load do
|
|
17
17
|
backups of database dumps and archives from synced directories. This task will
|
18
18
|
be called on 'deploy:setup'
|
19
19
|
DESC
|
20
|
-
task :setup do
|
20
|
+
task :setup, :roles => :app do
|
21
21
|
run "mkdir -p #{shared_path}/sync"
|
22
22
|
end
|
23
23
|
|
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:
|
4
|
+
hash: 39
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 1
|
8
8
|
- 13
|
9
|
-
-
|
10
|
-
version: 1.13.
|
9
|
+
- 2
|
10
|
+
version: 1.13.2
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Roman Simecek (CyT)
|
@@ -16,7 +16,7 @@ autorequire:
|
|
16
16
|
bindir: bin
|
17
17
|
cert_chain: []
|
18
18
|
|
19
|
-
date: 2011-12-
|
19
|
+
date: 2011-12-19 00:00:00 Z
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|
22
22
|
name: capistrano
|
@@ -193,4 +193,3 @@ specification_version: 3
|
|
193
193
|
summary: Some capistrano recipes for use.
|
194
194
|
test_files: []
|
195
195
|
|
196
|
-
has_rdoc:
|