sumodev_deploy 0.10.1 → 0.10.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/sumodev_deploy/tasks/files.rb +20 -7
- data/sumodev_deploy.gemspec +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f0e8c4b52e7b001cee803db1d3b6dd89d8535d1a84dcde53ecb4f9bea65158fe
|
4
|
+
data.tar.gz: 89820a89b4e865c6f28d1cc89afcc681ac6450d50085fc4d901e4a37a3f914dc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bbe9a325aa11e84a8e19d14cd408d5d075cfc088541c5c15c2cfd8a6c79290e84e841672e2923367ff2c4b27a5376b75306b4eda5545ba7d277a818017d4fd52
|
7
|
+
data.tar.gz: 103308a32c55f364304a223acba1a1928b6c86c7dd3edb3cbfc2c737df950280390f31061e477725de79bd66738e22785dbd8983dd67b4291df1a6721f451234
|
@@ -19,7 +19,12 @@ Capistrano::Configuration.instance.load do
|
|
19
19
|
|
20
20
|
servers.each do |server|
|
21
21
|
host_definition = "#{server.user || user}@#{server.host}"
|
22
|
-
|
22
|
+
if server.port && server.port != 22
|
23
|
+
host_definition << ":#{server.port}"
|
24
|
+
elsif ssh_options[:port] && ssh_options[:port] != 22
|
25
|
+
host_definition = " -e 'ssh -p #{ssh_options[:port]}' #{host_definition}"
|
26
|
+
end
|
27
|
+
|
23
28
|
|
24
29
|
case direction
|
25
30
|
when :down
|
@@ -34,10 +39,14 @@ Capistrano::Configuration.instance.load do
|
|
34
39
|
task :get, :roles => :app do
|
35
40
|
path = find_folder_in_parents('src/Frontend/Files')
|
36
41
|
if !path
|
37
|
-
|
38
|
-
|
39
|
-
|
42
|
+
path = find_folder_in_parents('frontend/files')
|
43
|
+
|
44
|
+
if !path
|
45
|
+
abort "No src/Frontend/Files or frontend/files folder found in this or upper folders. Are you sure you're in a Fork project?"
|
46
|
+
end
|
40
47
|
end
|
48
|
+
|
49
|
+
rsync :down, shared_files_path, path, :once => true
|
41
50
|
end
|
42
51
|
|
43
52
|
desc "Sync your local files to the remote server"
|
@@ -48,10 +57,14 @@ Capistrano::Configuration.instance.load do
|
|
48
57
|
# check if folder exists
|
49
58
|
path = find_folder_in_parents('src/Frontend/Files')
|
50
59
|
if !path
|
51
|
-
|
52
|
-
|
53
|
-
|
60
|
+
path = find_folder_in_parents('frontend/files')
|
61
|
+
|
62
|
+
if !path
|
63
|
+
abort "No src/Frontend/Files or frontend/files folder found in this or upper folders. Are you sure you're in a Fork project?"
|
64
|
+
end
|
54
65
|
end
|
66
|
+
|
67
|
+
rsync :up, "#{path}/", shared_files_path
|
55
68
|
end
|
56
69
|
end
|
57
70
|
end
|
data/sumodev_deploy.gemspec
CHANGED
@@ -2,10 +2,10 @@
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |s|
|
4
4
|
s.name = "sumodev_deploy"
|
5
|
-
s.version = "0.10.
|
5
|
+
s.version = "0.10.2"
|
6
6
|
|
7
7
|
s.authors = ["Tijs Verkoyen"]
|
8
|
-
s.date = "2020-01-
|
8
|
+
s.date = "2020-01-31"
|
9
9
|
s.description = "Deploy to Sumocoders Dev server"
|
10
10
|
s.summary = "..."
|
11
11
|
s.email = "info@sumocoders.be"
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sumodev_deploy
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.10.
|
4
|
+
version: 0.10.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tijs Verkoyen
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-01-
|
11
|
+
date: 2020-01-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|