ec2ssh 1.0.1 → 1.0.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.
- data/Gemfile.lock +2 -2
- data/lib/ec2ssh/hosts.rb +3 -2
- data/lib/ec2ssh/version.rb +1 -1
- metadata +4 -4
data/Gemfile.lock
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
|
|
4
|
+
ec2ssh (1.0.2)
|
|
5
5
|
highline (~> 1.6)
|
|
6
6
|
ktheory-right_aws (~> 2.0.3)
|
|
7
7
|
thor (~> 0.14.6)
|
|
@@ -19,7 +19,7 @@ PLATFORMS
|
|
|
19
19
|
ruby
|
|
20
20
|
|
|
21
21
|
DEPENDENCIES
|
|
22
|
+
ec2ssh!
|
|
22
23
|
highline (~> 1.6)
|
|
23
24
|
ktheory-right_aws (~> 2.0.3)
|
|
24
|
-
schop!
|
|
25
25
|
thor (~> 0.14.6)
|
data/lib/ec2ssh/hosts.rb
CHANGED
|
@@ -26,8 +26,9 @@ module Ec2ssh
|
|
|
26
26
|
instance_names[tag[:resource_id]] = tag[:value]
|
|
27
27
|
end
|
|
28
28
|
ec2.describe_instances.map do |instance|
|
|
29
|
-
instance_name = instance_names[instance[:aws_instance_id]]
|
|
30
|
-
|
|
29
|
+
instance_name = instance_names[instance[:aws_instance_id]] or next nil
|
|
30
|
+
dns_name = instance[:dns_name] or next nil
|
|
31
|
+
instance_name.empty? || dns_name.empty? ? nil : {:host => "#{instance_name}.#{region}", :dns_name => dns_name}
|
|
31
32
|
end.compact
|
|
32
33
|
end
|
|
33
34
|
end
|
data/lib/ec2ssh/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: ec2ssh
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
hash:
|
|
4
|
+
hash: 19
|
|
5
5
|
prerelease: false
|
|
6
6
|
segments:
|
|
7
7
|
- 1
|
|
8
8
|
- 0
|
|
9
|
-
-
|
|
10
|
-
version: 1.0.
|
|
9
|
+
- 2
|
|
10
|
+
version: 1.0.2
|
|
11
11
|
platform: ruby
|
|
12
12
|
authors:
|
|
13
13
|
- mirakui
|
|
@@ -15,7 +15,7 @@ autorequire:
|
|
|
15
15
|
bindir: bin
|
|
16
16
|
cert_chain: []
|
|
17
17
|
|
|
18
|
-
date:
|
|
18
|
+
date: 2011-01-07 00:00:00 +09:00
|
|
19
19
|
default_executable:
|
|
20
20
|
dependencies:
|
|
21
21
|
- !ruby/object:Gem::Dependency
|