terraforming 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: d57472a2d8992db0599ae5a1111b1c648f76f8e5
4
- data.tar.gz: c50702794d78467502ff68dab56f2e0749bb57de
3
+ metadata.gz: f9bd773aeb4acbfcd89f9d77fbdc54c68b7ee100
4
+ data.tar.gz: 699ad0b34423786c6b21983c4bb58295daecb988
5
5
  SHA512:
6
- metadata.gz: 3082ae845101d88a318b4b926013b9035c4e5732cbcbfadb88c7a5c8115cba2ae0b53845b67e5be8fe7afb276a6289243b2a8273dbd4368281b9190ff4151f75
7
- data.tar.gz: 2c55b45bee3f6ede00e547862e440d1baf23443de54d0fd3de39524f1a349873a25579e4fa18da37da044f49957d5696010897c52a9739793ea88ca9a7266ddc
6
+ metadata.gz: 9fdcbf5652f6afcca90739c20a8a0e31f93f980c0273ed2d9fc6c09b72dc5c192e6f2d411fd2db4be1e4dc96e99341f6564abbbd69c18e0cfc6be465b88b2f71
7
+ data.tar.gz: 60566d25e730807e64d993f7b8b671c200b6e88a94aa622a5c36325f866a0b4bca33d9cb278bf55e1907e7a852a9d04346094325ce258746f198f374fb202a35
data/CHANGELOG.md CHANGED
@@ -1,3 +1,13 @@
1
+ # v0.1.0 (UNRELEASED)
2
+
3
+ # [v0.0.4](https://github.com/dtan4/terraforming/releases/tag/v0.0.4) (2015-05-29)
4
+
5
+ ### Fixed
6
+
7
+ - Generate tfstate `modules` as Hash #56 (thanks @endemics)
8
+ - Set unique module name to SecurityGroup #53
9
+ - Remove `owner_id` argument from SecurityGroup #54
10
+
1
11
  # [v0.0.3](https://github.com/dtan4/terraforming/releases/tag/v0.0.3) (2015-05-26)
2
12
 
3
13
  ### Fixed
data/README.md CHANGED
@@ -4,6 +4,7 @@
4
4
  [![Code Climate](https://codeclimate.com/github/dtan4/terraforming/badges/gpa.svg)](https://codeclimate.com/github/dtan4/terraforming)
5
5
  [![Test Coverage](https://codeclimate.com/github/dtan4/terraforming/badges/coverage.svg)](https://codeclimate.com/github/dtan4/terraforming)
6
6
  [![Gem Version](https://badge.fury.io/rb/terraforming.svg)](http://badge.fury.io/rb/terraforming)
7
+ [![MIT License](http://img.shields.io/badge/license-MIT-blue.svg?style=flat)](LICENSE)
7
8
  [![Docker Repository on Quay.io](https://quay.io/repository/dtan4/terraforming/status "Docker Repository on Quay.io")](https://quay.io/repository/dtan4/terraforming)
8
9
 
9
10
  Import existing AWS resources into [Terraform](https://terraform.io/) style (tf, tfstate)
@@ -47,7 +47,7 @@ module Terraforming
47
47
  private
48
48
 
49
49
  def module_name_of(security_group)
50
- normalize_module_name(security_group.group_name)
50
+ normalize_module_name("#{security_group.group_id}-#{security_group.group_name}")
51
51
  end
52
52
 
53
53
  def security_groups
@@ -2,7 +2,6 @@
2
2
  resource "aws_security_group" "<%= module_name_of(security_group) %>" {
3
3
  name = "<%= security_group.group_name %>"
4
4
  description = "<%= security_group.description %>"
5
- owner_id = "<%= security_group.owner_id %>"
6
5
  vpc_id = "<%= security_group.vpc_id || '' %>"
7
6
 
8
7
  <% security_group.ip_permissions.each do |permission| -%>
@@ -21,13 +21,15 @@ module Terraforming
21
21
  tfstate = {
22
22
  "version" => 1,
23
23
  "serial" => 1,
24
- "modules" => {
25
- "path" => [
26
- "root"
27
- ],
28
- "outputs" => {},
29
- "resources" => resources
30
- }
24
+ "modules" => [
25
+ {
26
+ "path" => [
27
+ "root"
28
+ ],
29
+ "outputs" => {},
30
+ "resources" => resources
31
+ }
32
+ ]
31
33
  }
32
34
 
33
35
  JSON.pretty_generate(tfstate)
@@ -1,3 +1,3 @@
1
1
  module Terraforming
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: terraforming
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
  - Daisuke Fujita
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-05-26 00:00:00.000000000 Z
11
+ date: 2015-05-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk
@@ -257,3 +257,4 @@ signing_key:
257
257
  specification_version: 4
258
258
  summary: Import existing AWS resources into Terraform style (tf, tfstate)
259
259
  test_files: []
260
+ has_rdoc: