mulder 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: fde0e9bde59fcc1ca2c09d4b539c7247500f35d1
4
- data.tar.gz: f0f281e98da7eb020a33e6178ac46e91d307afed
3
+ metadata.gz: c43494e71c938402bf1046019f8feb9ffcbe037e
4
+ data.tar.gz: 35d1cae64d5d674026bb1a8d43a56c3d9a48cc4c
5
5
  SHA512:
6
- metadata.gz: 0a0f75eaf98fc1d52a093da22cdff7a6a5365ce0d194385020dc7cf888ebbfd9be3ab793cc0a06cdda9badab02d44bd97fce19ce37bfcb4e8de8679f8cfb8b52
7
- data.tar.gz: c11732ede3ee8f3634b9a9dd2c05c5dec2e6642c63ded0e965495af8746aff92120d8f1423f90de7db1009cc09c47234b41d030b5f16fb53bd8bb7b3efbb9422
6
+ metadata.gz: 38165153f8ff16d5ec56a2254d680604cceec362fe912d6eedfdab1b88676f313d170ce45926f9c8d0469f5f27a31fd0a68895f7b21e17439ff9d7523c60ab9f
7
+ data.tar.gz: 19122b01c731f1f354904acf44615d7e2e58948cfb075de0bf8261521f79c24cf08c1278957ee9f44ae2b82fd398438e7c5bb714c7040adb08e6286f6abed54c
data/README.markdown CHANGED
@@ -34,6 +34,7 @@ Example output:
34
34
  :dns_name => "web.prod.example.com",
35
35
  :public_ip_address => "1.0.1.0",
36
36
  :private_ip_address => "0.1.0.1",
37
+ :availability_zone => "us-east-1a",
37
38
  :created_at => 2013-08-08 18:21:05 UTC
38
39
  }
39
40
  ]
@@ -25,6 +25,10 @@ module Mulder
25
25
  @fog_compute_instance.private_ip_address
26
26
  end
27
27
 
28
+ def availability_zone
29
+ @fog_compute_instance.availability_zone
30
+ end
31
+
28
32
  def vpc_id
29
33
  @fog_compute_instance.vpc_id
30
34
  end
@@ -39,6 +43,7 @@ module Mulder
39
43
  dns_name: dns_name,
40
44
  public_ip_address: public_ip_address,
41
45
  private_ip_address: private_ip_address,
46
+ availability_zone: availability_zone,
42
47
  vpc_id: vpc_id,
43
48
  created_at: created_at
44
49
  }.delete_if { |_, value| value == '' || value == nil }
@@ -1,3 +1,3 @@
1
1
  module Mulder
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  end
@@ -2,7 +2,7 @@ require 'spec_helper'
2
2
 
3
3
  describe Mulder::Instance do
4
4
 
5
- let(:attributes) { { id: "i-f17bf19e", dns_name: 'foo.example.org', public_ip_address: '10.0.0.2', private_ip_address: '10.1.1.1', vpc_id: 'vpc-e9663d87', created_at: DateTime.parse('2013-09-10 19:39:26 UTC').to_s } }
5
+ let(:attributes) { { id: "i-f17bf19e", dns_name: 'foo.example.org', public_ip_address: '10.0.0.2', private_ip_address: '10.1.1.1', availability_zone: 'us-east-1a', vpc_id: 'vpc-e9663d87', created_at: DateTime.parse('2013-09-10 19:39:26 UTC').to_s } }
6
6
 
7
7
  describe '.new' do
8
8
  it 'stores the fog computer instance' do
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mulder
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Duncan Grazier
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-09-20 00:00:00.000000000 Z
11
+ date: 2013-09-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler