supply_drop 0.13.0 → 0.13.1
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.
- data/lib/supply_drop/plugin.rb +4 -1
- metadata +52 -33
data/lib/supply_drop/plugin.rb
CHANGED
@@ -4,13 +4,16 @@ module SupplyDrop
|
|
4
4
|
def rsync
|
5
5
|
SupplyDrop::Util.thread_pool_size = puppet_parallel_rsync_pool_size
|
6
6
|
servers = SupplyDrop::Util.optionally_async(find_servers_for_task(current_task), puppet_parallel_rsync)
|
7
|
+
overrides = {}
|
8
|
+
overrides[:user] = fetch(:user, ENV['USER'])
|
9
|
+
overrides[:port] = fetch(:port) if exists?(:port)
|
7
10
|
failed_servers = servers.map do |server|
|
8
11
|
rsync_cmd = SupplyDrop::Rsync.command(
|
9
12
|
puppet_source,
|
10
13
|
SupplyDrop::Rsync.remote_address(server.user || fetch(:user, ENV['USER']), server.host, puppet_destination),
|
11
14
|
:delete => true,
|
12
15
|
:excludes => puppet_excludes,
|
13
|
-
:ssh => ssh_options.merge(server.options[:ssh_options]||{})
|
16
|
+
:ssh => ssh_options.merge(server.options[:ssh_options]||{}).merge(overrides)
|
14
17
|
)
|
15
18
|
logger.debug rsync_cmd
|
16
19
|
server.host unless system rsync_cmd
|
metadata
CHANGED
@@ -1,43 +1,53 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: supply_drop
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
hash: 41
|
5
5
|
prerelease:
|
6
|
+
segments:
|
7
|
+
- 0
|
8
|
+
- 13
|
9
|
+
- 1
|
10
|
+
version: 0.13.1
|
6
11
|
platform: ruby
|
7
|
-
authors:
|
12
|
+
authors:
|
8
13
|
- Tony Pitluga
|
9
14
|
- Paul Hinze
|
10
15
|
autorequire:
|
11
16
|
bindir: bin
|
12
17
|
cert_chain: []
|
13
|
-
|
14
|
-
|
15
|
-
|
18
|
+
|
19
|
+
date: 2013-01-07 00:00:00 Z
|
20
|
+
dependencies:
|
21
|
+
- !ruby/object:Gem::Dependency
|
16
22
|
name: capistrano
|
17
|
-
requirement: !ruby/object:Gem::Requirement
|
18
|
-
none: false
|
19
|
-
requirements:
|
20
|
-
- - ! '>='
|
21
|
-
- !ruby/object:Gem::Version
|
22
|
-
version: 2.5.21
|
23
|
-
type: :runtime
|
24
23
|
prerelease: false
|
25
|
-
|
24
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
26
25
|
none: false
|
27
|
-
requirements:
|
28
|
-
- -
|
29
|
-
- !ruby/object:Gem::Version
|
26
|
+
requirements:
|
27
|
+
- - ">="
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
hash: 49
|
30
|
+
segments:
|
31
|
+
- 2
|
32
|
+
- 5
|
33
|
+
- 21
|
30
34
|
version: 2.5.21
|
35
|
+
type: :runtime
|
36
|
+
version_requirements: *id001
|
31
37
|
description: See http://github.com/pitluga/supply_drop
|
32
|
-
email:
|
38
|
+
email:
|
33
39
|
- tony.pitluga@gmail.com
|
34
40
|
- paul.t.hinze@gmail.com
|
35
41
|
executables: []
|
42
|
+
|
36
43
|
extensions: []
|
44
|
+
|
37
45
|
extra_rdoc_files: []
|
38
|
-
|
46
|
+
|
47
|
+
files:
|
39
48
|
- README.md
|
40
49
|
- Rakefile
|
50
|
+
- lib/supply_drop.rb
|
41
51
|
- lib/supply_drop/async_enumerable.rb
|
42
52
|
- lib/supply_drop/plugin.rb
|
43
53
|
- lib/supply_drop/rsync.rb
|
@@ -48,29 +58,38 @@ files:
|
|
48
58
|
- lib/supply_drop/writer/batched.rb
|
49
59
|
- lib/supply_drop/writer/file.rb
|
50
60
|
- lib/supply_drop/writer/streaming.rb
|
51
|
-
- lib/supply_drop.rb
|
52
61
|
homepage: http://github.com/pitluga/supply_drop
|
53
62
|
licenses: []
|
63
|
+
|
54
64
|
post_install_message:
|
55
65
|
rdoc_options: []
|
56
|
-
|
66
|
+
|
67
|
+
require_paths:
|
57
68
|
- lib
|
58
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
69
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
59
70
|
none: false
|
60
|
-
requirements:
|
61
|
-
- -
|
62
|
-
- !ruby/object:Gem::Version
|
63
|
-
|
64
|
-
|
71
|
+
requirements:
|
72
|
+
- - ">="
|
73
|
+
- !ruby/object:Gem::Version
|
74
|
+
hash: 3
|
75
|
+
segments:
|
76
|
+
- 0
|
77
|
+
version: "0"
|
78
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
65
79
|
none: false
|
66
|
-
requirements:
|
67
|
-
- -
|
68
|
-
- !ruby/object:Gem::Version
|
69
|
-
|
80
|
+
requirements:
|
81
|
+
- - ">="
|
82
|
+
- !ruby/object:Gem::Version
|
83
|
+
hash: 3
|
84
|
+
segments:
|
85
|
+
- 0
|
86
|
+
version: "0"
|
70
87
|
requirements: []
|
88
|
+
|
71
89
|
rubyforge_project:
|
72
|
-
rubygems_version: 1.8.
|
90
|
+
rubygems_version: 1.8.24
|
73
91
|
signing_key:
|
74
92
|
specification_version: 3
|
75
93
|
summary: Masterless puppet with capistrano
|
76
94
|
test_files: []
|
95
|
+
|