depengine 3.0.9 → 3.0.10

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
  SHA1:
3
- metadata.gz: 243086852abf27d809e0a80eb8ece84024e3d2ee
4
- data.tar.gz: 0b457bfa98ca4a7b841ca1098f710bef55ed9147
3
+ metadata.gz: 1973af1ae5ec0c527e493873a7d7c4d9d8f77cd8
4
+ data.tar.gz: ea5525a0662d01b95b7451601a7c195be4e0981a
5
5
  SHA512:
6
- metadata.gz: 0808aa28c38b2d8bc695b621a0f6570d145e7ae185c25d794c37dc87d3cc6e8eedd4cb2c767049119b183cbf8c753fa7f1db0cdbd3fbaf4d3ac8674bd3efd439
7
- data.tar.gz: 0eac33b0e2f0b9af9fe522af0b484a8e110d24038222903f810f487ae82bb9dcc94c018b2f16d525400cd1ffcca0e3bb812b5085d992193becc5a8cb20c29d5e
6
+ metadata.gz: 2b49ab018be3c446ff28fa5472fab70af05fee5237f7ab0c204b920c69b8bf8929b9e4abd803e24d4ec0d813d8bb32178d684dd8badd8d519d801388807d564e
7
+ data.tar.gz: 6ca99c2654ee22fea1885dc2629a7ee245f630439ea47d3f5698264cf3e9303e7532eb9180cecadac93c08a48de7d333008d1a5da2c2637d5088e6c618853157
@@ -25,10 +25,11 @@ module Deployment
25
25
  publisher = ::Publisher::Sftp.new
26
26
  publisher.remote_host = options[:remote_host] || @cdb['remote_host']
27
27
  publisher.remote_user = options[:remote_user] || @cdb['remote_user']
28
- publisher.ssh_key_file = options[:ssh_key_file] || @cdb['ssh_key_file']
29
-
30
- publisher.ssh_key_file = File.join(File.dirname($exec_file_path), \
31
- publisher.ssh_key_file)
28
+ if $recipe_config and ($recipe_config[:recipe_base_dir] || $recipe_config[:deploy_home])
29
+ publisher.ssh_key_file = File.join($recipe_config[:recipe_base_dir] || $recipe_config[:deploy_home], options[:ssh_key_file] || @cdb['ssh_key_file'])
30
+ else
31
+ publisher.ssh_key_file = options[:ssh_key_file] || @cdb['ssh_key_file']
32
+ end
32
33
 
33
34
  Helper.validates_presence_of publisher.remote_host, "Remote host not set"
34
35
  Helper.validates_presence_of publisher.remote_user, "Remote user not set"
@@ -45,13 +46,11 @@ module Deployment
45
46
  publisher = ::Publisher::Sftp.new
46
47
  publisher.remote_host = options[:remote_host] || @cdb['remote_host']
47
48
  publisher.remote_user = options[:remote_user] || @cdb['remote_user']
48
- publisher.ssh_key_file = options[:ssh_key_file] || @cdb['ssh_key_file']
49
-
50
- publisher.ssh_key_file = File.join(File.dirname($exec_file_path), \
51
- publisher.ssh_key_file)
52
-
53
- Helper.validates_presence_of publisher.remote_host, "Remote host not set"
54
- Helper.validates_presence_of publisher.remote_user, "Remote user not set"
49
+ if $recipe_config and ($recipe_config[:recipe_base_dir] || $recipe_config[:deploy_home])
50
+ publisher.ssh_key_file = File.join($recipe_config[:recipe_base_dir] || $recipe_config[:deploy_home], options[:ssh_key_file] || @cdb['ssh_key_file'])
51
+ else
52
+ publisher.ssh_key_file = options[:ssh_key_file] || @cdb['ssh_key_file']
53
+ end
55
54
 
56
55
  publisher.chmod(path, permissions, options)
57
56
  end
@@ -9,7 +9,12 @@ module Deployment
9
9
  publisher = ::Publisher::Ssh.new
10
10
  publisher.remote_host = options[:remote_host] || @cdb['remote_host']
11
11
  publisher.remote_user = options[:remote_user] || @cdb['remote_user']
12
- publisher.ssh_key_file = options[:ssh_key_file] || @cdb['ssh_key_file']
12
+ if $recipe_config and ($recipe_config[:recipe_base_dir] || $recipe_config[:deploy_home])
13
+ publisher.ssh_key_file = File.join($recipe_config[:recipe_base_dir] || $recipe_config[:deploy_home], options[:ssh_key_file] || @cdb['ssh_key_file'])
14
+ else
15
+ publisher.ssh_key_file = options[:ssh_key_file] || @cdb['ssh_key_file']
16
+ end
17
+
13
18
  publisher.remote_execute(command)
14
19
  end
15
20
 
@@ -23,10 +28,11 @@ module Deployment
23
28
  publisher = ::Publisher::Rsync.new
24
29
  publisher.remote_host = options[:remote_host] || @cdb['remote_host']
25
30
  publisher.remote_user = options[:remote_user] || @cdb['remote_user']
26
- publisher.ssh_key_file = options[:ssh_key_file] || @cdb['ssh_key_file']
27
-
28
- # publisher.ssh_key_file = File.join(File.dirname($exec_file_path), \
29
- # publisher.ssh_key_file)
31
+ if $recipe_config and ($recipe_config[:recipe_base_dir] || $recipe_config[:deploy_home])
32
+ publisher.ssh_key_file = File.join($recipe_config[:recipe_base_dir] || $recipe_config[:deploy_home], options[:ssh_key_file] || @cdb['ssh_key_file'])
33
+ else
34
+ publisher.ssh_key_file = options[:ssh_key_file] || @cdb['ssh_key_file']
35
+ end
30
36
 
31
37
  if options[:local].nil? or options[:local] == false
32
38
  Helper.validates_presence_of publisher.remote_host, "Remote host not set"
@@ -50,7 +56,11 @@ module Deployment
50
56
  publisher = ::Publisher::Ssh.new
51
57
  publisher.remote_host = options[:remote_host] || @cdb['remote_host']
52
58
  publisher.remote_user = options[:remote_user] || @cdb['remote_user']
53
- publisher.ssh_key_file = options[:ssh_key_file] || @cdb['ssh_key_file']
59
+ if $recipe_config and ($recipe_config[:recipe_base_dir] || $recipe_config[:deploy_home])
60
+ publisher.ssh_key_file = File.join($recipe_config[:recipe_base_dir] || $recipe_config[:deploy_home], options[:ssh_key_file] || @cdb['ssh_key_file'])
61
+ else
62
+ publisher.ssh_key_file = options[:ssh_key_file] || @cdb['ssh_key_file']
63
+ end
54
64
  publisher.remove_old_releases(path, num_of_releases_to_keep, release_name_shema)
55
65
  end
56
66
 
@@ -9,9 +9,6 @@ module Publisher
9
9
  Helper.validates_presence_of command, "No valid remote command given"
10
10
 
11
11
  result = ''
12
- if $recipe_config and ($recipe_config[:recipe_base_dir] || $recipe_config[:deploy_home])
13
- @ssh_key_file = File.join($recipe_config[:recipe_base_dir] || $recipe_config[:deploy_home], ssh_key_file)
14
- end
15
12
 
16
13
  if not File.file? @ssh_key_file
17
14
  $log.writer.error "Can not find SSH keyfile #{@ssh_key_file}"
@@ -1,3 +1,3 @@
1
1
  module Depengine
2
- VERSION = "3.0.9"
2
+ VERSION = "3.0.10"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: depengine
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.9
4
+ version: 3.0.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Team Automatisierung