fssh 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
data/lib/fssh/instance.rb CHANGED
@@ -20,5 +20,10 @@ module FSSH
20
20
  def private_dns_name
21
21
  base.instancesSet.item.first.privateDnsName
22
22
  end
23
+
24
+ def name
25
+ results = base.instancesSet.item.first.tagSet.item.select { |hash| hash["key"] == "Name" }
26
+ results.size > 0 ? results.first["value"] : ""
27
+ end
23
28
  end
24
29
  end
@@ -35,6 +35,10 @@ module FSSH
35
35
  @instances.map { |instance| instance.instancesSet.item.first.dnsName }
36
36
  end
37
37
 
38
+ def private_dns_names
39
+ @instances.map { |instance| instance.instancesSet.item.first.privateDnsName }
40
+ end
41
+
38
42
  def first
39
43
  Instance.new(@instances.first)
40
44
  end
data/lib/fssh/version.rb CHANGED
@@ -4,5 +4,5 @@
4
4
  # http://www.apache.org/licenses/LICENSE-2.0
5
5
 
6
6
  module FSSH
7
- VERSION = "0.0.2"
7
+ VERSION = "0.0.3"
8
8
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fssh
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-10-25 00:00:00.000000000 Z
12
+ date: 2013-01-02 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: amazon-ec2
@@ -71,7 +71,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
71
71
  version: '0'
72
72
  requirements: []
73
73
  rubyforge_project:
74
- rubygems_version: 1.8.24
74
+ rubygems_version: 1.8.23
75
75
  signing_key:
76
76
  specification_version: 3
77
77
  summary: ''