ec2-clusterssh 0.4.1 → 0.4.2

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2ff59ec927ccb55977ca8ff949c64e5a5e9a597b
4
- data.tar.gz: b7f80ea9c39c27648fec7f458a00765872fea770
3
+ metadata.gz: c74dd88d642351a19eb487a390e82274b747e387
4
+ data.tar.gz: b89e5951f98b0248596d6d84ec20dde465a3ee74
5
5
  SHA512:
6
- metadata.gz: 5729cc8d741d6670853b900bdd1f290221f2af8295688f8e54ffe7b03fffea761722f521f570abba0739a5e5fefa122f11ddd21f14299aa8990cb01c5e02ec05
7
- data.tar.gz: d215c01bd6680af9a387c68c39a32c15af8b57797ec9a57dd4070b075689b7928633a4c7ee41e04074a7567f59c6bacecb224e7aacc012bc264d33e2173fd8b6
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
- 'use_private_ip' => true,
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-private-ip", "Use private IP (default #{options['use_private_ip']})") do
29
- options['use_private_ip'] = true
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['use_private_ip']
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
 
@@ -1,5 +1,5 @@
1
1
  module Ec2
2
2
  module Clusterssh
3
- VERSION = "0.4.1"
3
+ VERSION = "0.4.2"
4
4
  end
5
5
  end
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.1
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-05-29 00:00:00.000000000 Z
11
+ date: 2015-06-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler