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 +4 -4
- data/README.markdown +1 -0
- data/lib/mulder/instance.rb +5 -0
- data/lib/mulder/version.rb +1 -1
- data/spec/lib/mulder/instance_spec.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: c43494e71c938402bf1046019f8feb9ffcbe037e
|
4
|
+
data.tar.gz: 35d1cae64d5d674026bb1a8d43a56c3d9a48cc4c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 38165153f8ff16d5ec56a2254d680604cceec362fe912d6eedfdab1b88676f313d170ce45926f9c8d0469f5f27a31fd0a68895f7b21e17439ff9d7523c60ab9f
|
7
|
+
data.tar.gz: 19122b01c731f1f354904acf44615d7e2e58948cfb075de0bf8261521f79c24cf08c1278957ee9f44ae2b82fd398438e7c5bb714c7040adb08e6286f6abed54c
|
data/README.markdown
CHANGED
data/lib/mulder/instance.rb
CHANGED
@@ -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 }
|
data/lib/mulder/version.rb
CHANGED
@@ -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.
|
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-
|
11
|
+
date: 2013-09-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|