cast-ssh 0.1.3 → 0.1.4
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 +8 -8
- data/bin/cast +1 -1
- data/lib/cast.rb +4 -4
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
MGEyMzk2NjVkM2UzMGM0MjY5Y2YwYWRhODcxY2MwMzZlNGFmZjViYw==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
NGU3YjVjZTgyMzZmZDI5NDVjY2RmMjgxYTQxNzYzNTQ3MmRmNjZjOA==
|
7
7
|
!binary "U0hBNTEy":
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
YWExNDJjOGU3MTYzOWY1OWU1MzhhZGE5ZmU4ZjZjNDRjZTY3MzkyYjZiZGY2
|
10
|
+
ZTRiNzU0ZGQ3ODA1OTJjNzc0YmU0YzU4YmU1NzQ3OTM3YTAwOGRlNzI0ZjFl
|
11
|
+
MzNjNzI1YWNjNjhkNjQ4YzdjMTk2OTEwM2I4NmE1NGY3ZDkxNmQ=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
MmYxMGMzYWQ5ODMzNDQ1OGIxOTNjNDc3NjJhZjM2ZGQwNzRkNWVkODUzZmZm
|
14
|
+
OThiODBlMGY3YzIxY2MxMDNjYTU1NWVlNmI0ZWEyMTJhMzdiZDIyNThkM2Qx
|
15
|
+
OWE4MjUwYzZmMGQ5MDA5MzZlYTM2MjdkNmRlMGM2ZDViZWI3MTY=
|
data/bin/cast
CHANGED
data/lib/cast.rb
CHANGED
@@ -7,7 +7,7 @@ STDOUT.sync = true
|
|
7
7
|
STDERR.sync = true
|
8
8
|
|
9
9
|
module Cast
|
10
|
-
VERSION = '0.1.
|
10
|
+
VERSION = '0.1.4'
|
11
11
|
DEFAULTGROUPS = '~/.cast.yml'
|
12
12
|
|
13
13
|
@@mux = Mutex.new
|
@@ -50,17 +50,17 @@ module Cast
|
|
50
50
|
return hosts.uniq
|
51
51
|
end
|
52
52
|
|
53
|
-
def self.run hosts, cmd, serial = false, delay = nil
|
53
|
+
def self.run hosts, cmd, serial = false, delay = nil, ssh = 'ssh'
|
54
54
|
if serial or delay
|
55
55
|
hosts.each_with_index do |host, i|
|
56
|
-
remote host, cmd
|
56
|
+
remote host, cmd, ssh
|
57
57
|
if delay and i < hosts.size - 1
|
58
58
|
log "delay for #{delay} seconds"
|
59
59
|
sleep delay
|
60
60
|
end
|
61
61
|
end
|
62
62
|
else
|
63
|
-
hosts.peach { |host| remote host, cmd }
|
63
|
+
hosts.peach { |host| remote host, cmd, ssh }
|
64
64
|
end
|
65
65
|
end
|
66
66
|
|