i2cssh 1.7.0 → 1.7.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/VERSION +1 -1
- data/bin/i2cssh +7 -7
- data/i2cssh.gemspec +1 -1
- metadata +3 -3
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.7.
|
1
|
+
1.7.1
|
data/bin/i2cssh
CHANGED
@@ -19,8 +19,8 @@ def get_hosts(c)
|
|
19
19
|
if cluster
|
20
20
|
set_options(cluster, login_from_cli)
|
21
21
|
|
22
|
-
if @i2_options[:
|
23
|
-
@servers += cluster["hosts"].map{|h| "#{@i2_options[:
|
22
|
+
if @i2_options[:login] then
|
23
|
+
@servers += cluster["hosts"].map{|h| "#{@i2_options[:login]}@#{h}"}
|
24
24
|
else
|
25
25
|
@servers += cluster["hosts"]
|
26
26
|
end
|
@@ -36,11 +36,11 @@ def set_options(config_hash, login_override=nil)
|
|
36
36
|
exit 1
|
37
37
|
end
|
38
38
|
|
39
|
-
[:broadcast, :profile, :rank, :iterm2, :
|
39
|
+
[:broadcast, :profile, :rank, :iterm2, :login, :columns, :rows, :sleep, :direction].each do |p|
|
40
40
|
@i2_options[p] = config_hash[p.to_s].nil? ? @i2_options[p] : config_hash[p.to_s]
|
41
41
|
end
|
42
42
|
|
43
|
-
@i2_options[:
|
43
|
+
@i2_options[:login] = login_override if login_override
|
44
44
|
@i2_options[:direction] ||= :column
|
45
45
|
@i2_options[:direction] = @i2_options[:direction].to_sym
|
46
46
|
|
@@ -90,7 +90,7 @@ optparse = OptionParser.new do |opts|
|
|
90
90
|
end
|
91
91
|
opts.on '-l', '--login LOGIN',
|
92
92
|
'SSH login name' do |u|
|
93
|
-
opts_from_cmdline[:
|
93
|
+
opts_from_cmdline[:login] = u
|
94
94
|
|
95
95
|
end
|
96
96
|
opts.on '-e', '--environment KEY=VAL',
|
@@ -174,8 +174,8 @@ end
|
|
174
174
|
|
175
175
|
@i2_options.merge!(opts_from_cmdline)
|
176
176
|
|
177
|
-
if @i2_options[:
|
178
|
-
@servers = @servers.map{|h| "#{@i2_options[:
|
177
|
+
if @i2_options[:login] then
|
178
|
+
@servers = @servers.map{|h| "#{@i2_options[:login]}@#{h.gsub(/.+@/,'')}"}
|
179
179
|
end
|
180
180
|
|
181
181
|
if @servers.empty?
|
data/i2cssh.gemspec
CHANGED
metadata
CHANGED