ec2-clusterssh 0.4.1 → 0.4.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +0 -7
- data/bin/cluster +6 -6
- data/lib/ec2/clusterssh/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c74dd88d642351a19eb487a390e82274b747e387
|
4
|
+
data.tar.gz: b89e5951f98b0248596d6d84ec20dde465a3ee74
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 944f261efa54b09d5b04bc56e4cd2d5c3536f162216cab9609305673a92a3d1bd6ca76e7767d6842320658b374224eeff0c0536fcb6b869aa15939190fb0af04
|
7
|
+
data.tar.gz: 8e9898937e00ee414330d49ebef4a590b63962c16107aa9c9b9dc2c3055e384a1ee22717076e69226c85f33e241ee9eb66aa12388f47daf0bdb13c67091ce4d2
|
data/README.md
CHANGED
@@ -20,13 +20,6 @@ Note: Mac users with the latest version of XCode may run into a compilation err
|
|
20
20
|
|
21
21
|
> export AWS_SECRET_ACCESS_KEY='...'
|
22
22
|
|
23
|
-
> export AWS_REGION='us-west-2'
|
24
|
-
|
25
|
-
- Edit /etc/csshrc to add the path to your identity file (rsa key).
|
26
|
-
NOTE: Some linux users have reported problems using /etc/csshrc, but have had success using ~/.csshrc.
|
27
|
-
|
28
|
-
> ssh_args = -i path/to/identity/file
|
29
|
-
|
30
23
|
## Usage
|
31
24
|
|
32
25
|
$cluster -h
|
data/bin/cluster
CHANGED
@@ -6,7 +6,7 @@ require 'aws-sdk'
|
|
6
6
|
|
7
7
|
options = {
|
8
8
|
'user' => 'ec2-user',
|
9
|
-
'
|
9
|
+
'use_public_ip' => false,
|
10
10
|
'region' => 'us-west-2'
|
11
11
|
}
|
12
12
|
|
@@ -25,8 +25,8 @@ OptionParser.new do |opts|
|
|
25
25
|
options['region'] = opt
|
26
26
|
end
|
27
27
|
|
28
|
-
opts.on("-p", "--use-
|
29
|
-
options['
|
28
|
+
opts.on("-p", "--use-public-ip", "Use public IP (default #{options['use_public_ip']})") do
|
29
|
+
options['use_public_ip'] = true
|
30
30
|
end
|
31
31
|
end.parse!
|
32
32
|
|
@@ -63,10 +63,10 @@ end
|
|
63
63
|
|
64
64
|
# get dns entries for cssh
|
65
65
|
dns = nil
|
66
|
-
if options['
|
67
|
-
dns = instances.map{|instance| instance.private_ip_address}
|
68
|
-
else
|
66
|
+
if options['use_public_ip']
|
69
67
|
dns = instances.map{|instance| instance.public_ip_address}
|
68
|
+
else
|
69
|
+
dns = instances.map{|instance| instance.private_ip_address}
|
70
70
|
end
|
71
71
|
|
72
72
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ec2-clusterssh
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Glenn Poston
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-06-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|