capones_recipes 1.8.0 → 1.9.0
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.
- data/lib/capones_recipes/tasks/airbrake/setup.rb +5 -7
- data/lib/capones_recipes/tasks/bookyt/setup.rb +2 -5
- data/lib/capones_recipes/tasks/database/sqlite.rb +1 -1
- data/lib/capones_recipes/tasks/new_relic/new_relic.rb +3 -5
- data/lib/capones_recipes/tasks/rails/database_yml.rb +2 -3
- data/lib/capones_recipes/tasks/restful_authentication/setup.rb +0 -6
- data/lib/capones_recipes/tasks/settings_logic/settings_logic.rb +2 -3
- data/lib/capones_recipes/version.rb +1 -1
- metadata +4 -4
@@ -1,14 +1,12 @@
|
|
1
1
|
require File.expand_path(File.dirname(__FILE__) + '/../utilities')
|
2
2
|
|
3
|
-
Capistrano::Configuration.instance
|
4
|
-
after "deploy:setup", "airbrake:setup"
|
5
|
-
|
3
|
+
Capistrano::Configuration.instance.load do
|
6
4
|
namespace :airbrake do
|
7
5
|
desc "Creates the air brake initializer with the custom API key."
|
8
|
-
task :
|
6
|
+
task :prepare_config do
|
9
7
|
api_key = Utilities.ask('Please insert the API key.', '')
|
10
|
-
run "mkdir -p #{shared_path}/config/initializers"
|
11
8
|
initializer_template = File.expand_path(File.dirname(__FILE__) + '/templates/airbrake.rb')
|
12
|
-
put Utilities.init_file(initializer_template, "<%%>", api_key), "#{shared_path}/config/initializers/airbrake.rb"
|
9
|
+
put Utilities.init_file(initializer_template, "<%%>", api_key), "#{shared_path}/config/initializers/airbrake.rb"
|
10
|
+
end
|
13
11
|
end
|
14
|
-
end
|
12
|
+
end
|
@@ -1,14 +1,11 @@
|
|
1
1
|
require File.expand_path(File.dirname(__FILE__) + '/../utilities')
|
2
2
|
|
3
3
|
Capistrano::Configuration.instance(true).load do
|
4
|
-
after "deploy:setup", "bookyt:setup"
|
5
4
|
after "deploy:finalize_update", "bookyt:symlink"
|
6
5
|
|
7
6
|
namespace :bookyt do
|
8
|
-
desc "
|
9
|
-
task :
|
10
|
-
run "mkdir -p #{shared_path}/initializer"
|
11
|
-
|
7
|
+
desc "Interactive configuration"
|
8
|
+
task :prepare_config, :roles => :app do
|
12
9
|
modules = [:pos, :salary, :stock, :projects].inject([]) do |out, pos|
|
13
10
|
out << "bookyt_#{pos.to_s}" if Utilities.yes? "Install bookyt_#{pos.to_s}"
|
14
11
|
|
@@ -1,11 +1,9 @@
|
|
1
1
|
Capistrano::Configuration.instance.load do
|
2
|
-
before "deploy:setup", :new_relic
|
3
2
|
after "deploy:update_code", "new_relic:symlink"
|
4
3
|
|
5
4
|
namespace :new_relic do
|
6
|
-
desc "
|
7
|
-
task :
|
8
|
-
run "mkdir -p #{shared_path}/config"
|
5
|
+
desc "Creates newrelic configuration based on example"
|
6
|
+
task :prepare_config do
|
9
7
|
upload "config/newrelic.yml.example", "#{shared_path}/config/newrelic.yml", :via => :scp
|
10
8
|
end
|
11
9
|
|
@@ -14,4 +12,4 @@ Capistrano::Configuration.instance.load do
|
|
14
12
|
run "ln -nfs #{shared_path}/config/newrelic.yml #{release_path}/config/newrelic.yml"
|
15
13
|
end
|
16
14
|
end
|
17
|
-
end
|
15
|
+
end
|
@@ -1,10 +1,9 @@
|
|
1
1
|
Capistrano::Configuration.instance.load do
|
2
|
-
before "deploy:setup", :db
|
3
2
|
after "deploy:finalize_update", "db:symlink"
|
4
3
|
|
5
4
|
namespace :db do
|
6
|
-
desc "Create database
|
7
|
-
task :
|
5
|
+
desc "Create database.yaml based on example"
|
6
|
+
task :prepare_config do
|
8
7
|
run "mkdir -p #{shared_path}/config"
|
9
8
|
upload "config/database.yml.example", "#{shared_path}/config/database.yml", :via => :scp
|
10
9
|
end
|
@@ -1,13 +1,7 @@
|
|
1
1
|
Capistrano::Configuration.instance.load do
|
2
|
-
before "deploy:setup", "restful_authentication:setup"
|
3
2
|
after "deploy:update_code", "restful_authentication:symlink"
|
4
3
|
|
5
4
|
namespace :restful_authentication do
|
6
|
-
desc "Create site_keys in capistrano shared path"
|
7
|
-
task :setup do
|
8
|
-
run "mkdir -p #{shared_path}/config/initializers"
|
9
|
-
end
|
10
|
-
|
11
5
|
desc "Make symlink for shared uploads"
|
12
6
|
task :symlink do
|
13
7
|
run "ln -nfs #{shared_path}/config/initializers/site_keys.rb #{release_path}/config/initializers/site_keys.rb"
|
@@ -1,10 +1,9 @@
|
|
1
1
|
Capistrano::Configuration.instance.load do
|
2
|
-
before "deploy:setup", :settings_logic
|
3
2
|
before "db:symlink", "settings_logic:symlink"
|
4
3
|
|
5
4
|
namespace :settings_logic do
|
6
5
|
desc "Create application yaml in capistrano shared path"
|
7
|
-
task :
|
6
|
+
task :prepare_config do
|
8
7
|
run "mkdir -p #{shared_path}/config"
|
9
8
|
upload "config/application.yml.example", "#{shared_path}/config/application.yml", :via => :scp
|
10
9
|
end
|
@@ -14,4 +13,4 @@ Capistrano::Configuration.instance.load do
|
|
14
13
|
run "ln -nfs #{shared_path}/config/application.yml #{release_path}/config/application.yml"
|
15
14
|
end
|
16
15
|
end
|
17
|
-
end
|
16
|
+
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:
|
4
|
+
hash: 51
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 1
|
8
|
-
-
|
8
|
+
- 9
|
9
9
|
- 0
|
10
|
-
version: 1.
|
10
|
+
version: 1.9.0
|
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-
|
19
|
+
date: 2011-12-01 00:00:00 +01:00
|
20
20
|
default_executable:
|
21
21
|
dependencies:
|
22
22
|
- !ruby/object:Gem::Dependency
|