capones_recipes 1.4.1 → 1.5.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/.gitignore +0 -3
- data/lib/capones_recipes/tasks/airbrake/symlink.rb +2 -2
- data/lib/capones_recipes/tasks/bookyt/setup.rb +1 -1
- data/lib/capones_recipes/tasks/carrier_wave/carrier_wave.rb +16 -0
- data/lib/capones_recipes/tasks/carrier_wave.rb +1 -0
- data/lib/capones_recipes/tasks/database/sync.rb +2 -2
- data/lib/capones_recipes/version.rb +1 -1
- metadata +9 -7
data/.gitignore
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
Capistrano::Configuration.instance(true).load do
|
2
|
-
|
2
|
+
after "deploy:finalize_update", "airbrake:symlink"
|
3
3
|
|
4
4
|
namespace :airbrake do
|
5
5
|
desc "Sets the symlink to shared/config/initializers/airbrake.rb"
|
@@ -7,4 +7,4 @@ Capistrano::Configuration.instance(true).load do
|
|
7
7
|
run "ln -nfs #{shared_path}/config/initializers/airbrake.rb #{release_path}/config/initializers/airbrake.rb"
|
8
8
|
end
|
9
9
|
end
|
10
|
-
end
|
10
|
+
end
|
@@ -2,7 +2,7 @@ require File.expand_path(File.dirname(__FILE__) + '/../utilities')
|
|
2
2
|
|
3
3
|
Capistrano::Configuration.instance(true).load do
|
4
4
|
after "deploy:setup", "bookyt:setup"
|
5
|
-
|
5
|
+
after "deploy:finalize_update", "bookyt:symlink"
|
6
6
|
|
7
7
|
namespace :bookyt do
|
8
8
|
desc "Asks which modules should be initialized and writes the config/initializer/bookyt.rb"
|
@@ -0,0 +1,16 @@
|
|
1
|
+
Capistrano::Configuration.instance.load do
|
2
|
+
before "deploy:setup", "carrier_wave:setup"
|
3
|
+
after "deploy:finalize_update", "carrier_wave:symlink"
|
4
|
+
|
5
|
+
namespace :carrier_wave do
|
6
|
+
desc "Create upload directory in capistrano shared path"
|
7
|
+
task :setup do
|
8
|
+
run "mkdir -p #{shared_path}/uploads"
|
9
|
+
end
|
10
|
+
|
11
|
+
desc "Make symlink for uploads directory"
|
12
|
+
task :symlink do
|
13
|
+
run "ln -nfs #{shared_path}/uploads #{release_path}/uploads"
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
@@ -0,0 +1 @@
|
|
1
|
+
Dir.glob(File.join(File.dirname(__FILE__), '/carrier_wave/*.rb')).sort.each { |f| require f }
|
@@ -64,7 +64,7 @@ Capistrano::Configuration.instance.load do
|
|
64
64
|
|
65
65
|
# Local DB import
|
66
66
|
username, password, database, host = database_config('development')
|
67
|
-
run_locally "rake db:
|
67
|
+
run_locally "rake db:reset"
|
68
68
|
run_locally "bzip2 -d -c #{filename} | mysql -u #{username} --password='#{password}' #{database}"
|
69
69
|
run_locally "rm -f #{filename}"
|
70
70
|
|
@@ -135,7 +135,7 @@ Capistrano::Configuration.instance.load do
|
|
135
135
|
|
136
136
|
# Local DB import
|
137
137
|
username, password, database, host = database_config('development')
|
138
|
-
run_locally "rake db:
|
138
|
+
run_locally "rake db:reset"
|
139
139
|
run_locally "bzip2 -d -c #{filename} | mysql -u #{username} --password='#{password}' #{database}"
|
140
140
|
run_locally "rm -f #{filename}"
|
141
141
|
|
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:
|
5
|
-
prerelease:
|
4
|
+
hash: 3
|
5
|
+
prerelease:
|
6
6
|
segments:
|
7
7
|
- 1
|
8
|
-
-
|
9
|
-
-
|
10
|
-
version: 1.
|
8
|
+
- 5
|
9
|
+
- 0
|
10
|
+
version: 1.5.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-11-
|
19
|
+
date: 2011-11-28 00:00:00 +01:00
|
20
20
|
default_executable:
|
21
21
|
dependencies:
|
22
22
|
- !ruby/object:Gem::Dependency
|
@@ -138,6 +138,8 @@ files:
|
|
138
138
|
- lib/capones_recipes/tasks/bookyt.rb
|
139
139
|
- lib/capones_recipes/tasks/bookyt/setup.rb
|
140
140
|
- lib/capones_recipes/tasks/bookyt/templates/bookyt.rb
|
141
|
+
- lib/capones_recipes/tasks/carrier_wave.rb
|
142
|
+
- lib/capones_recipes/tasks/carrier_wave/carrier_wave.rb
|
141
143
|
- lib/capones_recipes/tasks/database.rb
|
142
144
|
- lib/capones_recipes/tasks/database/mysql.rb
|
143
145
|
- lib/capones_recipes/tasks/database/sqlite.rb
|
@@ -191,7 +193,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
191
193
|
requirements: []
|
192
194
|
|
193
195
|
rubyforge_project:
|
194
|
-
rubygems_version: 1.
|
196
|
+
rubygems_version: 1.5.2
|
195
197
|
signing_key:
|
196
198
|
specification_version: 3
|
197
199
|
summary: Some capistrano recipes for use.
|