capistrano-django 3.0.0 → 3.1.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.
- checksums.yaml +4 -4
- data/lib/capistrano/django.rb +9 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6bd0d07a25bdb65d23bb8e72577c28c9844b0ad5
|
4
|
+
data.tar.gz: d2b0648d587faaf17aa8639a19fa268e5efb6d04
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 89c6133e7b344a431be2aa9a994d100ab57a0999bff9b7b0b34987096f96eda8817e087e088b157133bb0f84cb86c9cc01ef2a15bde9e10090984c1031c82124
|
7
|
+
data.tar.gz: dfae12b128edbccca478543cc1b51b0809ecefdaea4e51a2a7f10abfb37cf38f523ae1ae81ba985a3309e7e47e5e20cbba10b9a27f62a12c5262426c5b3bb82f
|
data/lib/capistrano/django.rb
CHANGED
@@ -29,12 +29,20 @@ end
|
|
29
29
|
|
30
30
|
namespace :python do
|
31
31
|
|
32
|
+
def virtualenv_path
|
33
|
+
File.join(
|
34
|
+
fetch(:shared_virtualenv) ? shared_path : release_path, "virtualenv"
|
35
|
+
)
|
36
|
+
end
|
37
|
+
|
32
38
|
desc "Create a python virtualenv"
|
33
39
|
task :create_virtualenv do
|
34
40
|
on roles(:all) do |h|
|
35
|
-
virtualenv_path = File.join(release_path, 'virtualenv')
|
36
41
|
execute "virtualenv #{virtualenv_path}"
|
37
42
|
execute "#{virtualenv_path}/bin/pip install -r #{release_path}/#{fetch(:pip_requirements)}"
|
43
|
+
if fetch(:shared_virtualenv)
|
44
|
+
execute :ln, "-s", virtualenv_path, File.join(release_path, 'virtualenv')
|
45
|
+
end
|
38
46
|
end
|
39
47
|
|
40
48
|
if fetch(:npm_tasks)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: capistrano-django
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.
|
4
|
+
version: 3.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Matthew J. Morrison
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-02-
|
11
|
+
date: 2015-02-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: capistrano
|