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.
Files changed (4) hide show
  1. checksums.yaml +8 -8
  2. data/bin/cast +1 -1
  3. data/lib/cast.rb +4 -4
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- ZTFmOWY4NGFhZjQ2MjFlYWVlMGFiOTUxN2YzMDJiMTViNzVjNjRlMQ==
4
+ MGEyMzk2NjVkM2UzMGM0MjY5Y2YwYWRhODcxY2MwMzZlNGFmZjViYw==
5
5
  data.tar.gz: !binary |-
6
- OTg2OWNhZjI5ZjVhMTEzODFhYjAwY2QxNDNkZGUzYzhiY2EzYmIyNw==
6
+ NGU3YjVjZTgyMzZmZDI5NDVjY2RmMjgxYTQxNzYzNTQ3MmRmNjZjOA==
7
7
  !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- MDZiZTg1YzU2ZjcwYWRjM2E1MjhjYzg4MWEwZGNiNTljNjAxOGI0OTExNTI2
10
- MGEzN2ZlMjZjZTBkOTIzNTI1YjA1NGU1M2RhZTY4MWJhOTljZjY3Yzg2YTlk
11
- YTBkMzg4Zjg3MjMxYTE1ZDdjNTM0N2NiOTJmZTYzYWFlY2Q2OTQ=
9
+ YWExNDJjOGU3MTYzOWY1OWU1MzhhZGE5ZmU4ZjZjNDRjZTY3MzkyYjZiZGY2
10
+ ZTRiNzU0ZGQ3ODA1OTJjNzc0YmU0YzU4YmU1NzQ3OTM3YTAwOGRlNzI0ZjFl
11
+ MzNjNzI1YWNjNjhkNjQ4YzdjMTk2OTEwM2I4NmE1NGY3ZDkxNmQ=
12
12
  data.tar.gz: !binary |-
13
- YTk3Mzg2ZDMzMWIyYjNkYmVjNzQ2MmU5OTIxNjhlNzRhYThlMjAzNzgwNmFj
14
- YTAzMjZmZDBjZjFjOTgzY2M1YjU0MjQ3YmU4Yzc3ZmYwNzUzMjJjMjE2ZDE4
15
- YmUxNDBhYTZmNWQ3YjhmNmY1ZDMyMWYzMzJhMGU4OTlmNWVmOWQ=
13
+ MmYxMGMzYWQ5ODMzNDQ1OGIxOTNjNDc3NjJhZjM2ZGQwNzRkNWVkODUzZmZm
14
+ OThiODBlMGY3YzIxY2MxMDNjYTU1NWVlNmI0ZWEyMTJhMzdiZDIyNThkM2Qx
15
+ OWE4MjUwYzZmMGQ5MDA5MzZlYTM2MjdkNmRlMGM2ZDViZWI3MTY=
data/bin/cast CHANGED
@@ -57,5 +57,5 @@ end
57
57
  cmd = ARGV[1..-1].join(' ')
58
58
  hosts = Cast::expand_groups ARGV[0].split(','), groups
59
59
 
60
- Cast::run hosts, cmd, opt[:serial], opt[:delay]
60
+ Cast::run hosts, cmd, opt[:serial], opt[:delay], opt[:ssh]
61
61
 
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.3'
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
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cast-ssh
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Peter Bakkum