i2cssh 1.2.2 → 1.2.3

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. data/VERSION +1 -1
  2. data/bin/i2cssh +9 -2
  3. data/i2cssh.gemspec +2 -2
  4. metadata +3 -3
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.2.2
1
+ 1.2.3
data/bin/i2cssh CHANGED
@@ -47,7 +47,14 @@ optparse = OptionParser.new do |opts|
47
47
  'Name of the cluster specified in ~/.i2csshrc' do |c|
48
48
  require 'yaml'
49
49
  config_hash = YAML.load File.read File.expand_path '~/.i2csshrc'
50
- servers += config_hash["clusters"][c]
50
+ cluster = config_hash["clusters"][c]
51
+ if cluster
52
+ servers += cluster
53
+ else
54
+ puts "ERROR: unknown cluster #{c}"
55
+ puts optparse.help
56
+ exit 1
57
+ end
51
58
  end
52
59
  opts.on '-m', '--machines a,b,c', Array,
53
60
  'Comma-separated list of hosts' do |h|
@@ -62,4 +69,4 @@ if servers.empty?
62
69
  exit
63
70
  end
64
71
 
65
- I2Cssh.new servers, ssh_options, i2_options
72
+ I2Cssh.new servers, ssh_options, i2_options
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{i2cssh}
8
- s.version = "1.2.2"
8
+ s.version = "1.2.3"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Wouter de Bie"]
12
- s.date = %q{2011-08-05}
12
+ s.date = %q{2011-08-09}
13
13
  s.default_executable = %q{i2cssh}
14
14
  s.description = %q{csshX like cluster ssh using iTerm2 panes}
15
15
  s.email = %q{wouter@evenflow.se}
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 1
7
7
  - 2
8
- - 2
9
- version: 1.2.2
8
+ - 3
9
+ version: 1.2.3
10
10
  platform: ruby
11
11
  authors:
12
12
  - Wouter de Bie
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2011-08-05 00:00:00 +02:00
17
+ date: 2011-08-09 00:00:00 +02:00
18
18
  default_executable: i2cssh
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency