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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: fbe916a075ac71289f8a53aff970d6aeb0a376b7d53fea8db02eefe0a4cf59f4
4
- data.tar.gz: 504608992e8b49dddb967f9ab3a8bb7a906ea0b3f1ec8287937c79331985d22f
3
+ metadata.gz: f0e8c4b52e7b001cee803db1d3b6dd89d8535d1a84dcde53ecb4f9bea65158fe
4
+ data.tar.gz: 89820a89b4e865c6f28d1cc89afcc681ac6450d50085fc4d901e4a37a3f914dc
5
5
  SHA512:
6
- metadata.gz: ae00efe8378ea0040f917fea221877caae844a90879e3423495e737a3f0d2ac855999675b1998b0293084c27b4be7017870b19228a572b572aebfc2fe31692a5
7
- data.tar.gz: d3de7548a585954573e6e25a456df315320a0687860a0bc439504d1dc7cda6cace1e9c7be4a712026de99edcb5736342cecc89685b2ddce593b590dc1353b7f2
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
- host_definition << ":#{server.port}" if server.port && server.port != 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
- abort "No src/Frontend/Files folder found in this or upper folders. Are you sure you're in a Fork project?"
38
- else
39
- rsync :down, shared_files_path, path, :once => true
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
- abort "No src/Frontend/Files folder found in this or upper folders. Are you sure you're in a Fork project?"
52
- else
53
- rsync :up, "#{path}/", shared_files_path
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
@@ -2,10 +2,10 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = "sumodev_deploy"
5
- s.version = "0.10.1"
5
+ s.version = "0.10.2"
6
6
 
7
7
  s.authors = ["Tijs Verkoyen"]
8
- s.date = "2020-01-29"
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.1
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-29 00:00:00.000000000 Z
11
+ date: 2020-01-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport