capifony 2.0.6 → 2.0.7
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG +5 -0
- data/lib/symfony1.rb +32 -32
- data/lib/symfony2.rb +37 -31
- metadata +4 -4
data/CHANGELOG
CHANGED
data/lib/symfony1.rb
CHANGED
@@ -34,7 +34,7 @@ def guess_symfony_orm
|
|
34
34
|
end
|
35
35
|
|
36
36
|
def guess_symfony_lib
|
37
|
-
symfony_version = capture("#{
|
37
|
+
symfony_version = capture("cd #{latest_release} && #{php_bin} ./symfony -V")
|
38
38
|
|
39
39
|
/\((.*)\)/.match(symfony_version)[1]
|
40
40
|
end
|
@@ -118,7 +118,7 @@ namespace :symfony do
|
|
118
118
|
task :default do
|
119
119
|
prompt_with_default(:task_arguments, "cache:clear")
|
120
120
|
|
121
|
-
stream "#{
|
121
|
+
stream "cd #{latest_release} && #{php_bin} ./symfony #{task_arguments}"
|
122
122
|
end
|
123
123
|
|
124
124
|
desc "Downloads & runs check_configuration.php on remote"
|
@@ -132,7 +132,7 @@ namespace :symfony do
|
|
132
132
|
|
133
133
|
desc "Clears the cache"
|
134
134
|
task :cc do
|
135
|
-
run "#{
|
135
|
+
run "cd #{latest_release} && #{php_bin} ./symfony cache:clear"
|
136
136
|
run "chmod -R g+w #{latest_release}/cache"
|
137
137
|
end
|
138
138
|
|
@@ -155,11 +155,11 @@ namespace :symfony do
|
|
155
155
|
# surpress debug log output to hide the password
|
156
156
|
current_logger_level = self.logger.level
|
157
157
|
if current_logger_level >= Capistrano::Logger::DEBUG
|
158
|
-
logger.debug %(executing "#{
|
158
|
+
logger.debug %(executing "cd #{latest_release} && #{php_bin} ./symfony configure:database '#{dsn}' '#{db_username}' ***")
|
159
159
|
self.logger.level = Capistrano::Logger::INFO
|
160
160
|
end
|
161
161
|
|
162
|
-
|
162
|
+
stream "cd #{latest_release} && #{php_bin} ./symfony configure:database '#{dsn}' '#{db_username}' '#{db_password}'"
|
163
163
|
|
164
164
|
# restore logger level
|
165
165
|
self.logger.level = current_logger_level
|
@@ -169,29 +169,29 @@ namespace :symfony do
|
|
169
169
|
namespace :project do
|
170
170
|
desc "Disables an application in a given environment"
|
171
171
|
task :disable do
|
172
|
-
run "#{
|
172
|
+
run "cd #{latest_release} && #{php_bin} ./symfony project:disable #{symfony_env_prod}"
|
173
173
|
end
|
174
174
|
|
175
175
|
desc "Enables an application in a given environment"
|
176
176
|
task :enable do
|
177
|
-
run "#{
|
177
|
+
run "cd #{latest_release} && #{php_bin} ./symfony project:enable #{symfony_env_prod}"
|
178
178
|
end
|
179
179
|
|
180
180
|
desc "Fixes symfony directory permissions"
|
181
181
|
task :permissions do
|
182
|
-
run "#{
|
182
|
+
run "cd #{latest_release} && #{php_bin} ./symfony project:permissions"
|
183
183
|
end
|
184
184
|
|
185
185
|
desc "Optimizes a project for better performance"
|
186
186
|
task :optimize do
|
187
187
|
prompt_with_default(:application, "frontend")
|
188
188
|
|
189
|
-
run "#{
|
189
|
+
run "cd #{latest_release} && #{php_bin} ./symfony project:optimize #{application}"
|
190
190
|
end
|
191
191
|
|
192
192
|
desc "Clears all non production environment controllers"
|
193
193
|
task :clear_controllers do
|
194
|
-
run "#{
|
194
|
+
run "cd #{latest_release} && #{php_bin} ./symfony project:clear-controllers"
|
195
195
|
end
|
196
196
|
|
197
197
|
desc "Sends emails stored in a queue"
|
@@ -199,7 +199,7 @@ namespace :symfony do
|
|
199
199
|
prompt_with_default(:message_limit, 10)
|
200
200
|
prompt_with_default(:time_limit, 10)
|
201
201
|
|
202
|
-
stream "#{
|
202
|
+
stream "cd #{latest_release} && #{php_bin} ./symfony project:send-emails --message-limit=#{message_limit} --time-limit=#{time_limit} --env=#{symfony_env_prod}"
|
203
203
|
end
|
204
204
|
|
205
205
|
desc 'Task to set all front controllers to a specific environment'
|
@@ -226,40 +226,40 @@ namespace :symfony do
|
|
226
226
|
namespace :plugin do
|
227
227
|
desc "Publishes web assets for all plugins"
|
228
228
|
task :publish_assets do
|
229
|
-
run "#{
|
229
|
+
run "cd #{latest_release} && #{php_bin} ./symfony plugin:publish-assets"
|
230
230
|
end
|
231
231
|
end
|
232
232
|
|
233
233
|
namespace :log do
|
234
234
|
desc "Clears log files"
|
235
235
|
task :clear do
|
236
|
-
run "#{
|
236
|
+
run "cd #{latest_release} && #{php_bin} ./symfony log:clear"
|
237
237
|
end
|
238
238
|
|
239
239
|
desc "Rotates an application's log files"
|
240
240
|
task :rotate do
|
241
241
|
prompt_with_default(:application, "frontend")
|
242
242
|
|
243
|
-
run "#{
|
243
|
+
run "cd #{latest_release} && #{php_bin} ./symfony log:rotate #{application} #{symfony_env_prod}"
|
244
244
|
end
|
245
245
|
end
|
246
246
|
|
247
247
|
namespace :tests do
|
248
248
|
desc "Launches all tests"
|
249
249
|
task :all do
|
250
|
-
run "#{
|
250
|
+
run "cd #{latest_release} && #{php_bin} ./symfony test:all"
|
251
251
|
end
|
252
252
|
|
253
253
|
desc "Launches functional tests"
|
254
254
|
task :functional do
|
255
255
|
prompt_with_default(:application, "frontend")
|
256
256
|
|
257
|
-
run "#{
|
257
|
+
run "cd #{latest_release} && #{php_bin} ./symfony test:functional #{application}"
|
258
258
|
end
|
259
259
|
|
260
260
|
desc "Launches unit tests"
|
261
261
|
task :unit do
|
262
|
-
run "#{
|
262
|
+
run "cd #{latest_release} && #{php_bin} ./symfony test:unit"
|
263
263
|
end
|
264
264
|
end
|
265
265
|
|
@@ -303,7 +303,7 @@ namespace :symfony do
|
|
303
303
|
namespace :doctrine do
|
304
304
|
desc "Compile doctrine"
|
305
305
|
task :compile do
|
306
|
-
run "#{
|
306
|
+
run "cd #{latest_release} && #{php_bin} ./symfony doctrine:compile"
|
307
307
|
end
|
308
308
|
|
309
309
|
desc "Ensure Doctrine is correctly configured"
|
@@ -318,59 +318,59 @@ namespace :symfony do
|
|
318
318
|
task :dql do
|
319
319
|
prompt_with_default(:query, "")
|
320
320
|
|
321
|
-
stream "#{
|
321
|
+
stream "cd #{latest_release} && #{php_bin} ./symfony doctrine:dql #{query} --env=#{symfony_env_prod}"
|
322
322
|
end
|
323
323
|
|
324
324
|
desc "Dumps data to the fixtures directory"
|
325
325
|
task :data_dump do
|
326
|
-
run "#{
|
326
|
+
run "cd #{latest_release} && #{php_bin} ./symfony doctrine:data-dump --env=#{symfony_env_prod}"
|
327
327
|
end
|
328
328
|
|
329
329
|
desc "Loads YAML fixture data"
|
330
330
|
task :data_load do
|
331
|
-
run "#{
|
331
|
+
run "cd #{latest_release} && #{php_bin} ./symfony doctrine:data-load --env=#{symfony_env_prod}"
|
332
332
|
end
|
333
333
|
|
334
334
|
desc "Loads YAML fixture data without remove"
|
335
335
|
task :data_load_append do
|
336
|
-
run "#{
|
336
|
+
run "cd #{latest_release} && #{php_bin} ./symfony doctrine:data-load --append --env=#{symfony_env_prod}"
|
337
337
|
end
|
338
338
|
|
339
339
|
desc "Migrates database to current version"
|
340
340
|
task :migrate do
|
341
|
-
run "#{
|
341
|
+
run "cd #{latest_release} && #{php_bin} ./symfony doctrine:migrate --env=#{symfony_env_prod}"
|
342
342
|
end
|
343
343
|
|
344
344
|
desc "Generate model lib form and filters classes based on your schema"
|
345
345
|
task :build_classes do
|
346
|
-
run "#{
|
346
|
+
run "cd #{latest_release} && #{php_bin} ./symfony doctrine:build --all-classes --env=#{symfony_env_prod}"
|
347
347
|
end
|
348
348
|
|
349
349
|
desc "Generate code & database based on your schema"
|
350
350
|
task :build_all do
|
351
351
|
if Capistrano::CLI.ui.agree("Do you really want to rebuild #{symfony_env_prod}'s database? (y/N)")
|
352
|
-
run "#{
|
352
|
+
run "cd #{latest_release} && #{php_bin} ./symfony doctrine:build --all --no-confirmation --env=#{symfony_env_prod}"
|
353
353
|
end
|
354
354
|
end
|
355
355
|
|
356
356
|
desc "Generate code & database based on your schema & load fixtures"
|
357
357
|
task :build_all_and_load do
|
358
358
|
if Capistrano::CLI.ui.agree("Do you really want to rebuild #{symfony_env_prod}'s database and load #{symfony_env_prod}'s fixtures? (y/N)")
|
359
|
-
run "#{
|
359
|
+
run "cd #{latest_release} && #{php_bin} ./symfony doctrine:build --all --and-load --no-confirmation --env=#{symfony_env_prod}"
|
360
360
|
end
|
361
361
|
end
|
362
362
|
|
363
363
|
desc "Generate sql & database based on your schema"
|
364
364
|
task :build_db do
|
365
365
|
if Capistrano::CLI.ui.agree("Do you really want to rebuild #{symfony_env_prod}'s database? (y/N)")
|
366
|
-
run "#{
|
366
|
+
run "cd #{latest_release} && #{php_bin} ./symfony doctrine:build --sql --db --no-confirmation --env=#{symfony_env_prod}"
|
367
367
|
end
|
368
368
|
end
|
369
369
|
|
370
370
|
desc "Generate sql & database based on your schema & load fixtures"
|
371
371
|
task :build_db_and_load do
|
372
372
|
if Capistrano::CLI.ui.agree("Do you really want to rebuild #{symfony_env_prod}'s database and load #{symfony_env_prod}'s fixtures? (y/N)")
|
373
|
-
run "#{
|
373
|
+
run "cd #{latest_release} && #{php_bin} ./symfony doctrine:build --sql --db --and-load --no-confirmation --env=#{symfony_env_prod}"
|
374
374
|
end
|
375
375
|
end
|
376
376
|
end
|
@@ -403,28 +403,28 @@ namespace :symfony do
|
|
403
403
|
desc "Generate code & database based on your schema"
|
404
404
|
task :build_all do
|
405
405
|
if Capistrano::CLI.ui.agree("Do you really want to rebuild #{symfony_env_prod}'s database? (y/N)")
|
406
|
-
run "#{
|
406
|
+
run "cd #{latest_release} && #{php_bin} ./symfony propel:build --sql --db --no-confirmation --env=#{symfony_env_prod}"
|
407
407
|
end
|
408
408
|
end
|
409
409
|
|
410
410
|
desc "Generate code & database based on your schema & load fixtures"
|
411
411
|
task :build_all_and_load do
|
412
412
|
if Capistrano::CLI.ui.agree("Do you really want to rebuild #{symfony_env_prod}'s database and load #{symfony_env_prod}'s fixtures? (y/N)")
|
413
|
-
run "#{
|
413
|
+
run "cd #{latest_release} && #{php_bin} ./symfony propel:build --sql --db --and-load --no-confirmation --env=#{symfony_env_prod}"
|
414
414
|
end
|
415
415
|
end
|
416
416
|
|
417
417
|
desc "Generate sql & database based on your schema"
|
418
418
|
task :build_db do
|
419
419
|
if Capistrano::CLI.ui.agree("Do you really want to rebuild #{symfony_env_prod}'s database? (y/N)")
|
420
|
-
run "#{
|
420
|
+
run "cd #{latest_release} && #{php_bin} ./symfony propel:build --sql --db --no-confirmation --env=#{symfony_env_prod}"
|
421
421
|
end
|
422
422
|
end
|
423
423
|
|
424
424
|
desc "Generate sql & database based on your schema & load fixtures"
|
425
425
|
task :build_db_and_load do
|
426
426
|
if Capistrano::CLI.ui.agree("Do you really want to rebuild #{symfony_env_prod}'s database and load #{symfony_env_prod}'s fixtures? (y/N)")
|
427
|
-
run "#{
|
427
|
+
run "cd #{latest_release} && #{php_bin} ./symfony propel:build --sql --db --and-load --no-confirmation --env=#{symfony_env_prod}"
|
428
428
|
end
|
429
429
|
end
|
430
430
|
end
|
data/lib/symfony2.rb
CHANGED
@@ -7,13 +7,19 @@ set :app_path, "app"
|
|
7
7
|
set :web_path, "web"
|
8
8
|
|
9
9
|
# Symfony console bin
|
10
|
-
set :symfony_console, "console"
|
10
|
+
set :symfony_console, app_path + "/console"
|
11
|
+
|
12
|
+
# Symfony log path
|
13
|
+
set :log_path, app_path + "/logs"
|
14
|
+
|
15
|
+
# Symfony cache path
|
16
|
+
set :cache_path, app_path + "/cache"
|
11
17
|
|
12
18
|
# Use AsseticBundle
|
13
19
|
set :dump_assetic_assets, false
|
14
20
|
|
15
21
|
# Dirs that need to remain the same between deploys (shared dirs)
|
16
|
-
set :shared_children, [
|
22
|
+
set :shared_children, [log_path, web_path + "/uploads"]
|
17
23
|
|
18
24
|
# Files that need to remain the same between deploys
|
19
25
|
set :shared_files, false
|
@@ -44,9 +50,9 @@ namespace :deploy do
|
|
44
50
|
desc "Update latest release source path."
|
45
51
|
task :finalize_update, :except => { :no_release => true } do
|
46
52
|
run "chmod -R g+w #{latest_release}" if fetch(:group_writable, true)
|
47
|
-
run "if [ -d #{latest_release}/#{
|
48
|
-
run "mkdir -p #{latest_release}/#{
|
49
|
-
run "chmod -R g+w #{latest_release}/#{
|
53
|
+
run "if [ -d #{latest_release}/#{cache_path} ] ; then rm -rf #{latest_release}/#{cache_path}; fi"
|
54
|
+
run "mkdir -p #{latest_release}/#{cache_path} && chmod -R 0777 #{latest_release}/#{cache_path}"
|
55
|
+
run "chmod -R g+w #{latest_release}/#{cache_path}"
|
50
56
|
|
51
57
|
share_childs
|
52
58
|
|
@@ -73,7 +79,7 @@ namespace :deploy do
|
|
73
79
|
desc "Migrate Symfony2 Doctrine ORM database."
|
74
80
|
task :migrate do
|
75
81
|
currentVersion = nil
|
76
|
-
run "#{php-bin} #{
|
82
|
+
run "#{php-bin} #{symfony_console} doctrine:migrations:status --env=#{symfony_env_prod}" do |ch, stream, out|
|
77
83
|
if stream == :out and out =~ /Current Version:[^$]+\(([0-9]+)\)/
|
78
84
|
currentVersion = Regexp.last_match(1)
|
79
85
|
end
|
@@ -88,14 +94,14 @@ namespace :deploy do
|
|
88
94
|
puts "Current database version #{currentVersion}"
|
89
95
|
|
90
96
|
on_rollback {
|
91
|
-
run "#{php-bin} #{
|
97
|
+
run "#{php-bin} #{symfony_console} doctrine:migrations:migrate #{currentVersion} --env=#{symfony_env_prod}" do |ch, stream, out|
|
92
98
|
if out =~ /Are you sure you wish to continue/
|
93
99
|
ch.send_data("y\r\n")
|
94
100
|
end
|
95
101
|
end
|
96
102
|
}
|
97
103
|
|
98
|
-
run "#{php-bin} #{
|
104
|
+
run "#{php-bin} #{symfony_console} doctrine:migrations:migrate --env=#{symfony_env_prod}" do |ch, stream, out|
|
99
105
|
if out =~ /Are you sure you wish to continue/
|
100
106
|
ch.send_data("y\r\n")
|
101
107
|
end
|
@@ -108,34 +114,34 @@ namespace :symfony do
|
|
108
114
|
task :default do
|
109
115
|
prompt_with_default(:task_arguments, "cache:clear")
|
110
116
|
|
111
|
-
stream "cd #{latest_release} && #{php_bin} #{
|
117
|
+
stream "cd #{latest_release} && #{php_bin} #{symfony_console} #{task_arguments} --env=#{symfony_env_prod}"
|
112
118
|
end
|
113
119
|
|
114
120
|
namespace :assets do
|
115
121
|
desc "Install bundle's assets"
|
116
122
|
task :install do
|
117
|
-
run "cd #{latest_release} && #{php_bin} #{
|
123
|
+
run "cd #{latest_release} && #{php_bin} #{symfony_console} assets:install #{web_path} --env=#{symfony_env_prod}"
|
118
124
|
end
|
119
125
|
end
|
120
126
|
|
121
127
|
namespace :assetic do
|
122
128
|
desc "Dumps all assets to the filesystem"
|
123
129
|
task :dump do
|
124
|
-
run "cd #{latest_release} && #{php_bin} #{
|
130
|
+
run "cd #{latest_release} && #{php_bin} #{symfony_console} assetic:dump #{web_path} --env=#{symfony_env_prod}"
|
125
131
|
end
|
126
132
|
end
|
127
133
|
|
128
134
|
namespace :cache do
|
129
135
|
desc "Clears project cache."
|
130
136
|
task :clear do
|
131
|
-
run "cd #{latest_release} && #{php_bin} #{
|
132
|
-
run "chmod -R g+w #{latest_release}/#{
|
137
|
+
run "cd #{latest_release} && #{php_bin} #{symfony_console} cache:clear --env=#{symfony_env_prod}"
|
138
|
+
run "chmod -R g+w #{latest_release}/#{cache_path}"
|
133
139
|
end
|
134
140
|
|
135
141
|
desc "Warms up an empty cache."
|
136
142
|
task :warmup do
|
137
|
-
run "cd #{latest_release} && #{php_bin} #{
|
138
|
-
run "chmod -R g+w #{latest_release}/#{
|
143
|
+
run "cd #{latest_release} && #{php_bin} #{symfony_console} cache:warmup --env=#{symfony_env_prod}"
|
144
|
+
run "chmod -R g+w #{latest_release}/#{cache_path}"
|
139
145
|
end
|
140
146
|
end
|
141
147
|
|
@@ -143,65 +149,65 @@ namespace :symfony do
|
|
143
149
|
namespace :cache do
|
144
150
|
desc "Clear all metadata cache for a entity manager."
|
145
151
|
task :clear_metadata do
|
146
|
-
run "cd #{latest_release} && #{php_bin} #{
|
152
|
+
run "cd #{latest_release} && #{php_bin} #{symfony_console} doctrine:cache:clear-metadata --env=#{symfony_env_prod}"
|
147
153
|
end
|
148
154
|
|
149
155
|
desc "Clear all query cache for a entity manager."
|
150
156
|
task :clear_query do
|
151
|
-
run "cd #{latest_release} && #{php_bin} #{
|
157
|
+
run "cd #{latest_release} && #{php_bin} #{symfony_console} doctrine:cache:clear-query --env=#{symfony_env_prod}"
|
152
158
|
end
|
153
159
|
|
154
160
|
desc "Clear result cache for a entity manager."
|
155
161
|
task :clear_result do
|
156
|
-
run "cd #{latest_release} && #{php_bin} #{
|
162
|
+
run "cd #{latest_release} && #{php_bin} #{symfony_console} doctrine:cache:clear-result --env=#{symfony_env_prod}"
|
157
163
|
end
|
158
164
|
end
|
159
165
|
|
160
166
|
namespace :database do
|
161
167
|
desc "Create the configured databases."
|
162
168
|
task :create do
|
163
|
-
run "cd #{latest_release} && #{php_bin} #{
|
169
|
+
run "cd #{latest_release} && #{php_bin} #{symfony_console} doctrine:database:create --env=#{symfony_env_prod}"
|
164
170
|
end
|
165
171
|
|
166
172
|
desc "Drop the configured databases."
|
167
173
|
task :drop do
|
168
|
-
run "cd #{latest_release} && #{php_bin} #{
|
174
|
+
run "cd #{latest_release} && #{php_bin} #{symfony_console} doctrine:database:drop --env=#{symfony_env_prod}"
|
169
175
|
end
|
170
176
|
end
|
171
177
|
|
172
178
|
namespace :generate do
|
173
179
|
desc "Generates proxy classes for entity classes."
|
174
180
|
task :hydrators do
|
175
|
-
run "cd #{latest_release} && #{php_bin} #{
|
181
|
+
run "cd #{latest_release} && #{php_bin} #{symfony_console} doctrine:generate:proxies --env=#{symfony_env_prod}"
|
176
182
|
end
|
177
183
|
|
178
184
|
desc "Generate repository classes from your mapping information."
|
179
185
|
task :hydrators do
|
180
|
-
run "cd #{latest_release} && #{php_bin} #{
|
186
|
+
run "cd #{latest_release} && #{php_bin} #{symfony_console} doctrine:generate:repositories --env=#{symfony_env_prod}"
|
181
187
|
end
|
182
188
|
end
|
183
189
|
|
184
190
|
namespace :schema do
|
185
191
|
desc "Processes the schema and either create it directly on EntityManager Storage Connection or generate the SQL output."
|
186
192
|
task :create do
|
187
|
-
run "cd #{latest_release} && #{php_bin} #{
|
193
|
+
run "cd #{latest_release} && #{php_bin} #{symfony_console} doctrine:schema:create --env=#{symfony_env_prod}"
|
188
194
|
end
|
189
195
|
|
190
196
|
desc "Drop the complete database schema of EntityManager Storage Connection or generate the corresponding SQL output."
|
191
197
|
task :drop do
|
192
|
-
run "cd #{latest_release} && #{php_bin} #{
|
198
|
+
run "cd #{latest_release} && #{php_bin} #{symfony_console} doctrine:schema:drop --env=#{symfony_env_prod}"
|
193
199
|
end
|
194
200
|
end
|
195
201
|
|
196
202
|
namespace :migrations do
|
197
203
|
desc "Execute a migration to a specified version or the latest available version."
|
198
204
|
task :migrate do
|
199
|
-
run "cd #{latest_release} && #{php_bin} #{
|
205
|
+
run "cd #{latest_release} && #{php_bin} #{symfony_console} doctrine:migrations:migrate --env=#{symfony_env_prod}"
|
200
206
|
end
|
201
207
|
|
202
208
|
desc "View the status of a set of migrations."
|
203
209
|
task :status do
|
204
|
-
run "cd #{latest_release} && #{php_bin} #{
|
210
|
+
run "cd #{latest_release} && #{php_bin} #{symfony_console} doctrine:migrations:status --env=#{symfony_env_prod}"
|
205
211
|
end
|
206
212
|
end
|
207
213
|
|
@@ -209,29 +215,29 @@ namespace :symfony do
|
|
209
215
|
namespace :generate do
|
210
216
|
desc "Generates hydrator classes for document classes."
|
211
217
|
task :hydrators do
|
212
|
-
run "cd #{latest_release} && #{php_bin} #{
|
218
|
+
run "cd #{latest_release} && #{php_bin} #{symfony_console} doctrine:mongodb:generate:hydrators --env=#{symfony_env_prod}"
|
213
219
|
end
|
214
220
|
|
215
221
|
desc "Generates proxy classes for document classes."
|
216
222
|
task :hydrators do
|
217
|
-
run "cd #{latest_release} && #{php_bin} #{
|
223
|
+
run "cd #{latest_release} && #{php_bin} #{symfony_console} doctrine:mongodb:generate:proxies --env=#{symfony_env_prod}"
|
218
224
|
end
|
219
225
|
|
220
226
|
desc "Generates repository classes for document classes."
|
221
227
|
task :hydrators do
|
222
|
-
run "cd #{latest_release} && #{php_bin} #{
|
228
|
+
run "cd #{latest_release} && #{php_bin} #{symfony_console} doctrine:mongodb:generate:repositories --env=#{symfony_env_prod}"
|
223
229
|
end
|
224
230
|
end
|
225
231
|
|
226
232
|
namespace :schema do
|
227
233
|
desc "Allows you to create databases, collections and indexes for your documents."
|
228
234
|
task :create do
|
229
|
-
run "cd #{latest_release} && #{php_bin} #{
|
235
|
+
run "cd #{latest_release} && #{php_bin} #{symfony_console} doctrine:mongodb:schema:create --env=#{symfony_env_prod}"
|
230
236
|
end
|
231
237
|
|
232
238
|
desc "Allows you to drop databases, collections and indexes for your documents."
|
233
239
|
task :drop do
|
234
|
-
run "cd #{latest_release} && #{php_bin} #{
|
240
|
+
run "cd #{latest_release} && #{php_bin} #{symfony_console} doctrine:mongodb:schema:drop --env=#{symfony_env_prod}"
|
235
241
|
end
|
236
242
|
end
|
237
243
|
end
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: capifony
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 1
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 2
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 2.0.
|
9
|
+
- 7
|
10
|
+
version: 2.0.7
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Konstantin Kudryashov
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2011-
|
18
|
+
date: 2011-06-09 00:00:00 +03:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|