i2cssh 1.4.1 → 1.4.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (5) hide show
  1. data/README.markdown +14 -11
  2. data/VERSION +1 -1
  3. data/bin/i2cssh +2 -0
  4. data/i2cssh.gemspec +1 -1
  5. metadata +3 -3
data/README.markdown CHANGED
@@ -23,36 +23,39 @@ to all sessions.
23
23
  -c, --cluster CLUSTERNAME Name of the cluster specified in ~/.i2csshrc
24
24
  -m, --machines a,b,c Comma-separated list of hosts
25
25
 
26
- For -c and -m options, the format username@cluster or username@host can be used.
26
+ For `-c` and `-m` options, the format `username@cluster` or `username@host` can be used.
27
27
 
28
28
  The following commands are exactly the same, however, they might serve different purposes:
29
29
 
30
30
  $ i2cssh -m user1@host1,user2@host2
31
31
  $ i2cssh user1@host1 user2@host2
32
32
 
33
- Using the -l option will override all usernames:
33
+ Using the `-l` option will override all usernames:
34
34
 
35
35
  $ i2css -l foo user1@host1 user2@host2
36
36
 
37
- This will connect to both host1 and host2 as the user foo
37
+ This will connect to both `host1` and `host2` as the user `foo`
38
38
 
39
39
  ## i2csshrc
40
40
 
41
- The i2csshrc file is a YAML formatted file that contains the following structure:
41
+ The `i2csshrc` file is a YAML formatted file that contains the following structure:
42
42
 
43
43
  ---
44
- version: 2 # Mandatory. Current version is 2
45
- iterm2: false # Optional. Set to true if you use iTerm2.app instead of iTerm.app.
46
- broadcast: false # Optional. Set to true if you want to enable broadcast for all clusters.
47
- login: myusername # Optional. Always use this username.
44
+ version: 2
45
+ [optional parameters]
48
46
  clusters:
49
47
  mycluster:
50
- broadcast: false # Optional. Set to true if you want to enable broadcast for this cluster.
51
- login: false # Optional. Set to true if you want a specific login for this cluster.
48
+ [optional parameters]
52
49
  hosts:
53
50
  - host1
54
51
  - host2
55
- - ...
52
+
53
+ Optional parameters can be used globablly or per cluster and include:
54
+
55
+ broadcast: (true/false) # Enable/disable broadcast on start
56
+ login: <username> # Use this username for login
57
+ profile: <iTerm2 profile> # Use this iTerm profile
58
+ iterm2: true # Use iTerm2.app instead of iTerm.app (only available globally)
56
59
 
57
60
  The following precedence is used:
58
61
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.4.1
1
+ 1.4.2
data/bin/i2cssh CHANGED
@@ -19,6 +19,7 @@ if File.exists?(config_file)
19
19
  i2_options[:iterm2] = config_hash["iterm2"]
20
20
  i2_options[:login_override] = config_hash["login"]
21
21
  i2_options[:broadcast] = config_hash["broadcast"]
22
+ i2_options[:profile] = config_hash["profile"]
22
23
 
23
24
  else
24
25
  # Convert version 1 format to version 2
@@ -47,6 +48,7 @@ optparse = OptionParser.new do |opts|
47
48
  i2_options[:login_override] = cluster["login"] || i2_options[:login_override]
48
49
  i2_options[:login_override] = login_from_cli if login_from_cli
49
50
  i2_options[:broadcast] = cluster["broadcast"] || i2_options[:broadcast]
51
+ i2_options[:profile] = cluster["profile"] || i2_options[:profile]
50
52
 
51
53
  if i2_options[:login_override] then
52
54
  cluster_hosts = cluster_hosts.map{|h| "#{i2_options[:login_override]}@#{h}"}
data/i2cssh.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "i2cssh"
8
- s.version = "1.4.1"
8
+ s.version = "1.4.2"
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"]
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: i2cssh
3
3
  version: !ruby/object:Gem::Version
4
- hash: 5
4
+ hash: 3
5
5
  prerelease:
6
6
  segments:
7
7
  - 1
8
8
  - 4
9
- - 1
10
- version: 1.4.1
9
+ - 2
10
+ version: 1.4.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - Wouter de Bie