You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
raise"pushing is disabled, set disallow_pushing to false to carry out this operation"iffetch(:disallow_pushing)
16
+
end
17
+
end
11
18
12
19
namespace:dbdo
13
20
namespace:remotedo
14
21
desc'Synchronize your remote database using local database data'
15
-
task:syncdo
22
+
task:sync=>'capistrano_db_tasks:check_can_push'do
16
23
onroles(:db)do
17
24
iffetch(:skip_data_sync_confirm) || Util.prompt('Are you sure you want to REPLACE THE REMOTE DATABASE with local database')
18
25
Database.local_to_remote(self)
@@ -43,7 +50,7 @@
43
50
namespace:assetsdo
44
51
namespace:remotedo
45
52
desc'Synchronize your remote assets using local assets'
46
-
task:syncdo
53
+
task:sync=>'capistrano_db_tasks:check_can_push'do
47
54
onroles(:app)do
48
55
puts"Assets directories: #{fetch(:assets_dir)}"
49
56
iffetch(:skip_data_sync_confirm) || Util.prompt("Are you sure you want to erase your server assets with local assets")
@@ -75,7 +82,7 @@
75
82
namespace:appdo
76
83
namespace:remotedo
77
84
desc'Synchronize your remote assets AND database using local assets and database'
78
-
task:syncdo
85
+
task:sync=>'capistrano_db_tasks:check_can_push'do
79
86
iffetch(:skip_data_sync_confirm) || Util.prompt("Are you sure you want to REPLACE THE REMOTE DATABASE AND your remote assets with local database and assets(#{fetch(:assets_dir)})")
80
87
onroles(:db)do
81
88
Database.local_to_remote(self)
@@ -110,4 +117,4 @@
110
117
111
118
desc'Synchronize your remote assets AND database using local assets and database'
0 commit comments