capistrano-django 2.4.1 → 2.4.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/capistrano/django.rb +4 -4
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: eefeba01e5b13383780af8838ca0e16ac2ca4620
4
- data.tar.gz: 2aad58ec4814081c6eceea6bc6e1168ea6afd729
3
+ metadata.gz: 955643fc3fc9fa8b13d46d7a76e1f0ab0a2cd163
4
+ data.tar.gz: 329ecaeb894d9545b0d656acdae901eb2303b753
5
5
  SHA512:
6
- metadata.gz: 68ed03042ef1cb10225e9d4eb60255f72e8067d989379b48d9ec298f89c88d471452b5861a47d89c9ca9fee8c10456dc3ccce642e4cb168d0fafb02b30582c9a
7
- data.tar.gz: 3114aaf82bd741293b698d2d745f41e827621591db0c9480954fc4b0bdc4b16aaddb80f8aaae305aac24db04aaf2fa0e537d8d3e551a7b64efe22be699eee388
6
+ metadata.gz: 72797cfad2bb79893c84ae56340c88de7f527914cd808de34d7e78e4e0ab6a31550282de96a808a8575ec08161908fadc337c172a8f97674037f7b46170ddfbd
7
+ data.tar.gz: 5e5eda80225a28222a96517ca7cae1f2c3223db3ce3f561ecb2197e529e405d83a13d6bc9e3df47eae40749202ac86c6b135f9b9241af8672a11434bb6a999b2
@@ -46,8 +46,8 @@ end
46
46
 
47
47
  namespace :django do
48
48
 
49
- def django(args, flags="")
50
- on roles(:all) do |h|
49
+ def django(args, flags="", run_on=:all)
50
+ on roles(run_on) do |h|
51
51
  manage_path = File.join(release_path, fetch(:django_project_dir) || '', 'manage.py')
52
52
  execute "#{release_path}/virtualenv/bin/python #{manage_path} #{fetch(:django_settings)} #{args} #{flags}"
53
53
  end
@@ -125,9 +125,9 @@ namespace :django do
125
125
  desc "Run django migrations"
126
126
  task :migrate do
127
127
  if fetch(:multidb)
128
- django("sync_all", '--noinput')
128
+ django("sync_all", '--noinput', run_on=:web)
129
129
  else
130
- django("syncdb", "--noinput --migrate")
130
+ django("syncdb", "--noinput --migrate", run_on=:web)
131
131
  end
132
132
  end
133
133
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capistrano-django
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.4.1
4
+ version: 2.4.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matthew J. Morrison