geoengineer 0.1.0

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.
Files changed (82) hide show
  1. checksums.yaml +7 -0
  2. data/LICENSE +13 -0
  3. data/README.md +476 -0
  4. data/bin/geo +7 -0
  5. data/lib/geoengineer.rb +29 -0
  6. data/lib/geoengineer/cli/geo_cli.rb +208 -0
  7. data/lib/geoengineer/cli/status_command.rb +101 -0
  8. data/lib/geoengineer/cli/terraform_commands.rb +59 -0
  9. data/lib/geoengineer/environment.rb +186 -0
  10. data/lib/geoengineer/output.rb +27 -0
  11. data/lib/geoengineer/project.rb +79 -0
  12. data/lib/geoengineer/resource.rb +200 -0
  13. data/lib/geoengineer/resources/aws_db_instance.rb +46 -0
  14. data/lib/geoengineer/resources/aws_db_parameter_group.rb +25 -0
  15. data/lib/geoengineer/resources/aws_elasticache_cluster.rb +50 -0
  16. data/lib/geoengineer/resources/aws_elasticache_parameter_group.rb +30 -0
  17. data/lib/geoengineer/resources/aws_elasticache_replication_group.rb +44 -0
  18. data/lib/geoengineer/resources/aws_elasticache_subnet_group.rb +25 -0
  19. data/lib/geoengineer/resources/aws_elasticsearch_domain.rb +35 -0
  20. data/lib/geoengineer/resources/aws_elb.rb +57 -0
  21. data/lib/geoengineer/resources/aws_iam_policy.rb +53 -0
  22. data/lib/geoengineer/resources/aws_iam_user.rb +42 -0
  23. data/lib/geoengineer/resources/aws_instance.rb +24 -0
  24. data/lib/geoengineer/resources/aws_proxy_protocol_policy.rb +39 -0
  25. data/lib/geoengineer/resources/aws_redshift_cluster.rb +23 -0
  26. data/lib/geoengineer/resources/aws_route53_record.rb +32 -0
  27. data/lib/geoengineer/resources/aws_route53_zone.rb +21 -0
  28. data/lib/geoengineer/resources/aws_s3_bucket.rb +54 -0
  29. data/lib/geoengineer/resources/aws_security_group.rb +53 -0
  30. data/lib/geoengineer/resources/aws_ses_receipt_rule.rb +38 -0
  31. data/lib/geoengineer/resources/aws_ses_receipt_rule_set.rb +28 -0
  32. data/lib/geoengineer/resources/aws_sns_topic.rb +28 -0
  33. data/lib/geoengineer/resources/aws_sns_topic_subscription.rb +42 -0
  34. data/lib/geoengineer/resources/aws_sqs_queue.rb +37 -0
  35. data/lib/geoengineer/resources/iam/statement.rb +43 -0
  36. data/lib/geoengineer/sub_resource.rb +35 -0
  37. data/lib/geoengineer/template.rb +28 -0
  38. data/lib/geoengineer/utils/aws_clients.rb +63 -0
  39. data/lib/geoengineer/utils/has_attributes.rb +97 -0
  40. data/lib/geoengineer/utils/has_lifecycle.rb +54 -0
  41. data/lib/geoengineer/utils/has_resources.rb +63 -0
  42. data/lib/geoengineer/utils/has_sub_resources.rb +43 -0
  43. data/lib/geoengineer/utils/has_validations.rb +57 -0
  44. data/lib/geoengineer/utils/null_object.rb +17 -0
  45. data/lib/geoengineer/version.rb +3 -0
  46. data/spec/environment_spec.rb +140 -0
  47. data/spec/output_spec.rb +3 -0
  48. data/spec/project_spec.rb +79 -0
  49. data/spec/resource_spec.rb +169 -0
  50. data/spec/resources/aws_db_instance_spec.rb +23 -0
  51. data/spec/resources/aws_db_parameter_group_spec.rb +23 -0
  52. data/spec/resources/aws_elasticache_replication_group_spec.rb +29 -0
  53. data/spec/resources/aws_elasticache_subnet_group_spec.rb +31 -0
  54. data/spec/resources/aws_elasticcache_cluster_spec.rb +23 -0
  55. data/spec/resources/aws_elasticcache_parameter_group_spec.rb +26 -0
  56. data/spec/resources/aws_elasticsearch_domain_spec.rb +22 -0
  57. data/spec/resources/aws_elb_spec.rb +65 -0
  58. data/spec/resources/aws_iam_policy.rb +35 -0
  59. data/spec/resources/aws_iam_user.rb +35 -0
  60. data/spec/resources/aws_instance_spec.rb +26 -0
  61. data/spec/resources/aws_proxy_protocol_policy_spec.rb +5 -0
  62. data/spec/resources/aws_redshift_cluster_spec.rb +25 -0
  63. data/spec/resources/aws_route53_record_spec.rb +41 -0
  64. data/spec/resources/aws_route53_zone_spec.rb +34 -0
  65. data/spec/resources/aws_s3_bucket_spec.rb +39 -0
  66. data/spec/resources/aws_security_group_spec.rb +80 -0
  67. data/spec/resources/aws_ses_receipt_rule.rb +33 -0
  68. data/spec/resources/aws_ses_receipt_rule_set.rb +25 -0
  69. data/spec/resources/aws_sns_topic_spec.rb +23 -0
  70. data/spec/resources/aws_sns_topic_subscription.rb +35 -0
  71. data/spec/resources/aws_sqs_queue_spec.rb +20 -0
  72. data/spec/rubocop_spec.rb +13 -0
  73. data/spec/spec_helper.rb +71 -0
  74. data/spec/sub_resource_spec.rb +20 -0
  75. data/spec/template_spec.rb +39 -0
  76. data/spec/utils/has_attributes_spec.rb +118 -0
  77. data/spec/utils/has_lifecycle_spec.rb +24 -0
  78. data/spec/utils/has_resources_spec.rb +68 -0
  79. data/spec/utils/has_subresources_spec.rb +29 -0
  80. data/spec/utils/has_validations_spec.rb +35 -0
  81. data/spec/utils/null_object_spec.rb +18 -0
  82. metadata +303 -0
@@ -0,0 +1,71 @@
1
+ require 'rspec'
2
+ require_relative '../lib/geoengineer'
3
+ require 'pry'
4
+
5
+ # https://ruby.awsblog.com/post/Tx2SU6TYJWQQLC3/Stubbing-AWS-Responses
6
+ AwsClients.stub!
7
+
8
+ # Common Resource Class Tests
9
+ # rubocop:disable Metrics/AbcSize
10
+ def init_test(clazz_name)
11
+ it "should initialize and error" do
12
+ env = GeoEngineer::Environment.new("name")
13
+ res = env.resource(clazz_name, 'id') {
14
+ some_value 10
15
+ sub_resource {
16
+ another_value 20
17
+ }
18
+ }
19
+ expect(res.some_value).to eq 10
20
+ expect(res.sub_resource.another_value).to eq 20
21
+ expect(res.errors.length).to_not eq 0
22
+ end
23
+ end
24
+
25
+ def mapping_tests(clazz, clazz_name)
26
+ it 'should be identified from #get_resource_class_from_type' do
27
+ gen_clazz = GeoEngineer::Environment.get_resource_class_from_type(clazz_name)
28
+ expect(gen_clazz).to eq clazz
29
+ end
30
+
31
+ it 'should derive its type from its class with #type_from_class_name' do
32
+ clazz_name = clazz.type_from_class_name
33
+ expect(clazz_name).to eq clazz_name
34
+ end
35
+ end
36
+
37
+ def fetch_empty_should_work(clazz)
38
+ it 'should work with emtpy response' do
39
+ remote_resources = clazz._fetch_remote_resources
40
+ expect(remote_resources.length).to eq 0
41
+ end
42
+ end
43
+
44
+ def common_resource_tests(clazz, clazz_name)
45
+ describe 'init test' do
46
+ init_test(clazz_name)
47
+ end
48
+
49
+ describe "class mapping" do
50
+ mapping_tests(clazz, clazz_name)
51
+ end
52
+
53
+ describe "#_fetch_remote_resources" do
54
+ fetch_empty_should_work(clazz)
55
+ end
56
+ end
57
+
58
+ def name_tag_geo_id_tests(clazz)
59
+ describe "_terraform_id and _geo_id" do
60
+ it 'should get terraform_id from remote by matching geo_ids' do
61
+ clazz.clear_remote_resource_cache
62
+ remote_resources = [{ _geo_id: 'geo_id', _terraform_id: 't_id' }]
63
+ allow(clazz).to(receive(:_fetch_remote_resources).and_return(remote_resources))
64
+ res = clazz.new('type', 'id') {
65
+ tags { Name 'geo_id' }
66
+ }
67
+ expect(res._geo_id).to eq 'geo_id'
68
+ expect(res.remote_resource._terraform_id).to eq 't_id'
69
+ end
70
+ end
71
+ end
@@ -0,0 +1,20 @@
1
+ require_relative './spec_helper'
2
+
3
+ describe("GeoEngineer::SubResource") do
4
+ it 'should work' do
5
+ sr = GeoEngineer::SubResource.new(nil, 'tags') {
6
+ x 10
7
+ }
8
+ expect(sr.x).to eq 10
9
+ end
10
+
11
+ describe '#to_terraform_json' do
12
+ it 'should return a list, with key[0] value[1]' do
13
+ sr = GeoEngineer::SubResource.new(nil, 'tags') {
14
+ x 10
15
+ }
16
+ expect(sr.to_terraform_json[0]).to eq 'tags'
17
+ expect(sr.to_terraform_json[1]['x']).to eq 10
18
+ end
19
+ end
20
+ end
@@ -0,0 +1,39 @@
1
+ require_relative './spec_helper'
2
+
3
+ describe("GeoEngineer::Template") do
4
+ class CustomTemplate < GeoEngineer::Template
5
+ attr_reader :res1, :res2
6
+
7
+ def initialize(name, project, parameters)
8
+ super(name, project, parameters)
9
+
10
+ res1 = resource('type', '1') {
11
+ name "Resource1"
12
+ param parameters[:res1]
13
+ }
14
+
15
+ res2 = resource('type', '2') {
16
+ name "Resource2"
17
+ rel res1
18
+ }
19
+
20
+ @res1 = res1
21
+ @res2 = res2
22
+ end
23
+
24
+ def template_resources
25
+ [@res1, @res2]
26
+ end
27
+ end
28
+
29
+ it 'should be extendable' do
30
+ project = NullObject.new
31
+ template = CustomTemplate.new("custom_template", project, { res1: "Res1" })
32
+
33
+ expect(template.res1.name).to eq "Resource1"
34
+ expect(template.res1.param).to eq "Res1"
35
+
36
+ expect(template.res2.name).to eq "Resource2"
37
+ expect(template.res2.rel).to eq template.res1
38
+ end
39
+ end
@@ -0,0 +1,118 @@
1
+ require_relative '../spec_helper'
2
+
3
+ describe("HasAttributes") do
4
+ class WithAttributes
5
+ include HasAttributes
6
+ attr_reader :block_handled
7
+ def assign_block(name, *args, &block)
8
+ @block_handled = name
9
+ end
10
+ end
11
+
12
+ describe('#[]') do
13
+ it 'should return array of arrays' do
14
+ x = WithAttributes.new
15
+ x[:id] = "1"
16
+ expect(x[:id]).to eq "1"
17
+ end
18
+ end
19
+
20
+ describe('#terraform_attributes') do
21
+ it 'should return a hash of attributes' do
22
+ x = WithAttributes.new
23
+ x.id = "1"
24
+ expect(x.terraform_attributes.length).to eq 1
25
+ expect(x.terraform_attributes["id"]).to eq "1"
26
+ end
27
+
28
+ it 'should remove attribute _terraform_id' do
29
+ x = WithAttributes.new
30
+ x._terraform_id = "1"
31
+ x.id = "1"
32
+ expect(x.terraform_attributes.length).to eq 1
33
+ end
34
+
35
+ it 'should remove attributes starting with _' do
36
+ x = WithAttributes.new
37
+ x._private_id = "1"
38
+ x.id = "1"
39
+ expect(x.terraform_attributes.length).to eq 1
40
+ end
41
+
42
+ it 'should remove attributes where values are nil' do
43
+ x = WithAttributes.new
44
+ x.id = nil
45
+ expect(x.terraform_attributes.length).to eq 0
46
+ end
47
+
48
+ it 'should convert resources values to references (including in arrays)' do
49
+ x = WithAttributes.new
50
+ x.reference = GeoEngineer::Resource.new("type", "idd")
51
+ expect(x.terraform_attributes["reference"]).to eq "${type.idd.id}"
52
+ end
53
+ end
54
+
55
+ describe('bad attributes') do
56
+ it 'timeout attribute should work' do
57
+ x = WithAttributes.new
58
+ x.timeout = 10
59
+ expect(x.timeout).to eq 10
60
+ end
61
+ end
62
+
63
+ describe('#method_missing') do
64
+ it 'should call assign_block if a block is passed' do
65
+ x = WithAttributes.new
66
+ expect(x.block_handled).to eq nil
67
+ x.block {
68
+ block true
69
+ }
70
+ expect(x.block_handled).to eq 'block'
71
+ end
72
+
73
+ it 'should assign an attribute (with and without equals)' do
74
+ x = WithAttributes.new
75
+ x.attribute = "asd"
76
+ x.other_attribute "sdf"
77
+ expect(x.attribute).to eq "asd"
78
+ expect(x.other_attribute).to eq "sdf"
79
+ end
80
+
81
+ it 'should assign multiple attributes as an array' do
82
+ x = WithAttributes.new
83
+ x.attribute = 1, 2, 3
84
+ x.other_attribute 3, 4, 5
85
+ expect(x.attribute).to eq [1, 2, 3]
86
+ expect(x.other_attribute).to eq [3, 4, 5]
87
+ end
88
+
89
+ it 'should assign a Proc and lazy evaluate and cache the value' do
90
+ x = WithAttributes.new
91
+ called_count = 0
92
+ x.attribute = -> {
93
+ called_count += 1
94
+ "awesome"
95
+ }
96
+ expect(called_count).to eq 0
97
+ expect(x.attribute).to eq "awesome"
98
+ expect(called_count).to eq 1
99
+ expect(x.attribute).to eq "awesome"
100
+ expect(called_count).to eq 1
101
+ end
102
+
103
+ it 'should delete an attribute' do
104
+ x = WithAttributes.new
105
+ x.attribute = "asd"
106
+ expect(x.attribute).to eq "asd"
107
+ x.delete(:attribute)
108
+ expect(x.attribute).to eq nil
109
+ end
110
+
111
+ it 'should be usable with []' do
112
+ x = WithAttributes.new
113
+ x.attribute = "asd"
114
+ expect(x["attribute"]).to eq "asd"
115
+ expect(x[:attribute]).to eq "asd"
116
+ end
117
+ end
118
+ end
@@ -0,0 +1,24 @@
1
+ require_relative '../spec_helper'
2
+
3
+ describe("HasLifecycle") do
4
+ it "should work" do
5
+ class Life
6
+ include HasLifecycle
7
+ attr_reader :called_count
8
+ after :initialize, -> { @called_count += 1 }
9
+ def initialize
10
+ @called_count = 0
11
+ execute_lifecycle(:after, :initialize)
12
+ end
13
+ end
14
+
15
+ class AfterLife < Life
16
+ after :initialize, -> { @called_count += 10 }
17
+ end
18
+
19
+ life = Life.new()
20
+ after_life = AfterLife.new()
21
+ expect(life.called_count).to eq 1
22
+ expect(after_life.called_count).to eq 11
23
+ end
24
+ end
@@ -0,0 +1,68 @@
1
+ require_relative '../spec_helper'
2
+
3
+ describe("HasResources") do
4
+ class WithResources
5
+ include HasResources
6
+ end
7
+
8
+ class GeoEngineer::Resources::AwesomeResource < GeoEngineer::Resource
9
+ end
10
+
11
+ describe '#resources_grouped_by' do
12
+ it 'should return a hash of grouped resource' do
13
+ x = WithResources.new()
14
+ x.create_resource("type", "id") {
15
+ blue true
16
+ }
17
+ x.create_resource("type", "id") {
18
+ blue true
19
+ }
20
+ x.create_resource("type", "id") {
21
+ blue false
22
+ }
23
+ group = x.resources_grouped_by(&:blue)
24
+ expect(group[true].length).to eq 2
25
+ expect(group[false].length).to eq 1
26
+ end
27
+ end
28
+
29
+ describe('#get_resource_class_from_type') do
30
+ it 'should default to GeoEngineer::Resource' do
31
+ expect(WithResources.get_resource_class_from_type("asd")).to eq GeoEngineer::Resource
32
+ end
33
+
34
+ it 'should find a defined class' do
35
+ clazz = WithResources.get_resource_class_from_type("awesome_resource")
36
+ expect(clazz).to eq GeoEngineer::Resources::AwesomeResource
37
+ end
38
+ end
39
+
40
+ describe('#find_resource_by_ref') do
41
+ it 'should find a resource given terraform ref' do
42
+ x = WithResources.new()
43
+ x.create_resource("type", "id") {
44
+ value 10
45
+ }
46
+ expect(x.find_resource_by_ref('${type.id.param}').value).to eq 10
47
+ end
48
+ end
49
+
50
+ describe('#create_resource') do
51
+ it 'should add resources with a block' do
52
+ x = WithResources.new()
53
+ resource = x.create_resource("type", "id") {
54
+ value 20
55
+ }
56
+
57
+ expect(resource.value).to eq 20
58
+ end
59
+
60
+ it 'should look up the class for the resources' do
61
+ x = WithResources.new()
62
+ resource = x.create_resource("awesome_resource", "id") {
63
+ value 30
64
+ }
65
+ expect(resource.class).to eq GeoEngineer::Resources::AwesomeResource
66
+ end
67
+ end
68
+ end
@@ -0,0 +1,29 @@
1
+ require_relative '../spec_helper'
2
+
3
+ describe("HasSubResources") do
4
+ it 'should add subresources with a block' do
5
+ class WithSubResources
6
+ include HasAttributes
7
+ include HasSubResources
8
+ end
9
+
10
+ x = WithSubResources.new()
11
+ x.one_sr {
12
+ value 10
13
+ }
14
+
15
+ expect(x.one_sr.value).to eq 10
16
+ expect(x.no_one_value).to eq nil
17
+
18
+ x.multi_sr {
19
+ value 20
20
+ }
21
+
22
+ x.multi_sr {
23
+ value 40
24
+ }
25
+
26
+ expect(x.all_multi_sr[0].value).to eq 20
27
+ expect(x.all_multi_sr[1].value).to eq 40
28
+ end
29
+ end
@@ -0,0 +1,35 @@
1
+ require_relative '../spec_helper'
2
+
3
+ describe("HasValidations") do
4
+ it "should work" do
5
+ class InValid
6
+ include HasValidations
7
+ validate -> { "ERROR MESSAGE" }
8
+ end
9
+
10
+ class Valid
11
+ include HasValidations
12
+ validate -> { nil }
13
+ end
14
+
15
+ valid = Valid.new().errors
16
+ invalid = InValid.new().errors
17
+ expect(valid.length).to eq 0
18
+ expect(invalid.length).to eq 1
19
+ end
20
+
21
+ it "should include suberclass validations" do
22
+ class Super
23
+ include HasValidations
24
+ validate -> { "super" }
25
+ end
26
+
27
+ class Sub < Super
28
+ validate -> { "sub" }
29
+ end
30
+
31
+ errs = Sub.new().errors
32
+ expect(errs).to include('sub')
33
+ expect(errs).to include('super')
34
+ end
35
+ end
@@ -0,0 +1,18 @@
1
+ require_relative '../spec_helper'
2
+
3
+ describe("NullObject") do
4
+ it "should not error on methods" do
5
+ no = NullObject.new()
6
+ expect(no.not_a_method).to eq nil
7
+ end
8
+ end
9
+
10
+ describe("NullObject.maybe") do
11
+ it "should create a NullObject or not" do
12
+ a = NullObject.maybe(nil)
13
+ expect(a.not_a_method).to eq nil
14
+
15
+ b = NullObject.maybe("b")
16
+ expect(b.to_s).to eq "b"
17
+ end
18
+ end
metadata ADDED
@@ -0,0 +1,303 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: geoengineer
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - coinbase
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2016-11-25 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: rspec
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '3.4'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '3.4'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rake
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '10.4'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '10.4'
41
+ - !ruby/object:Gem::Dependency
42
+ name: yard
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '0.8'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '0.8'
55
+ - !ruby/object:Gem::Dependency
56
+ name: rubocop
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: '0.42'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: '0.42'
69
+ - !ruby/object:Gem::Dependency
70
+ name: pry-byebug
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - "~>"
74
+ - !ruby/object:Gem::Version
75
+ version: '3.4'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - "~>"
81
+ - !ruby/object:Gem::Version
82
+ version: '3.4'
83
+ - !ruby/object:Gem::Dependency
84
+ name: netaddr
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - "~>"
88
+ - !ruby/object:Gem::Version
89
+ version: '1.5'
90
+ type: :runtime
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - "~>"
95
+ - !ruby/object:Gem::Version
96
+ version: '1.5'
97
+ - !ruby/object:Gem::Dependency
98
+ name: aws-sdk
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - "~>"
102
+ - !ruby/object:Gem::Version
103
+ version: '2.2'
104
+ type: :runtime
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - "~>"
109
+ - !ruby/object:Gem::Version
110
+ version: '2.2'
111
+ - !ruby/object:Gem::Dependency
112
+ name: commander
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - "~>"
116
+ - !ruby/object:Gem::Version
117
+ version: '4.4'
118
+ type: :runtime
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - "~>"
123
+ - !ruby/object:Gem::Version
124
+ version: '4.4'
125
+ - !ruby/object:Gem::Dependency
126
+ name: colorize
127
+ requirement: !ruby/object:Gem::Requirement
128
+ requirements:
129
+ - - "~>"
130
+ - !ruby/object:Gem::Version
131
+ version: '0.7'
132
+ type: :runtime
133
+ prerelease: false
134
+ version_requirements: !ruby/object:Gem::Requirement
135
+ requirements:
136
+ - - "~>"
137
+ - !ruby/object:Gem::Version
138
+ version: '0.7'
139
+ - !ruby/object:Gem::Dependency
140
+ name: terminal-table
141
+ requirement: !ruby/object:Gem::Requirement
142
+ requirements:
143
+ - - "~>"
144
+ - !ruby/object:Gem::Version
145
+ version: '1.5'
146
+ type: :runtime
147
+ prerelease: false
148
+ version_requirements: !ruby/object:Gem::Requirement
149
+ requirements:
150
+ - - "~>"
151
+ - !ruby/object:Gem::Version
152
+ version: '1.5'
153
+ description: |2
154
+ GeoEngineer provides a Ruby DSL and command line tool (geo)
155
+ to codeify then plan and execute changes to cloud resources using Hashicorp Terraform.
156
+ email:
157
+ - graham.jenson@coinbase.com
158
+ executables:
159
+ - geo
160
+ extensions: []
161
+ extra_rdoc_files: []
162
+ files:
163
+ - LICENSE
164
+ - README.md
165
+ - bin/geo
166
+ - lib/geoengineer.rb
167
+ - lib/geoengineer/cli/geo_cli.rb
168
+ - lib/geoengineer/cli/status_command.rb
169
+ - lib/geoengineer/cli/terraform_commands.rb
170
+ - lib/geoengineer/environment.rb
171
+ - lib/geoengineer/output.rb
172
+ - lib/geoengineer/project.rb
173
+ - lib/geoengineer/resource.rb
174
+ - lib/geoengineer/resources/aws_db_instance.rb
175
+ - lib/geoengineer/resources/aws_db_parameter_group.rb
176
+ - lib/geoengineer/resources/aws_elasticache_cluster.rb
177
+ - lib/geoengineer/resources/aws_elasticache_parameter_group.rb
178
+ - lib/geoengineer/resources/aws_elasticache_replication_group.rb
179
+ - lib/geoengineer/resources/aws_elasticache_subnet_group.rb
180
+ - lib/geoengineer/resources/aws_elasticsearch_domain.rb
181
+ - lib/geoengineer/resources/aws_elb.rb
182
+ - lib/geoengineer/resources/aws_iam_policy.rb
183
+ - lib/geoengineer/resources/aws_iam_user.rb
184
+ - lib/geoengineer/resources/aws_instance.rb
185
+ - lib/geoengineer/resources/aws_proxy_protocol_policy.rb
186
+ - lib/geoengineer/resources/aws_redshift_cluster.rb
187
+ - lib/geoengineer/resources/aws_route53_record.rb
188
+ - lib/geoengineer/resources/aws_route53_zone.rb
189
+ - lib/geoengineer/resources/aws_s3_bucket.rb
190
+ - lib/geoengineer/resources/aws_security_group.rb
191
+ - lib/geoengineer/resources/aws_ses_receipt_rule.rb
192
+ - lib/geoengineer/resources/aws_ses_receipt_rule_set.rb
193
+ - lib/geoengineer/resources/aws_sns_topic.rb
194
+ - lib/geoengineer/resources/aws_sns_topic_subscription.rb
195
+ - lib/geoengineer/resources/aws_sqs_queue.rb
196
+ - lib/geoengineer/resources/iam/statement.rb
197
+ - lib/geoengineer/sub_resource.rb
198
+ - lib/geoengineer/template.rb
199
+ - lib/geoengineer/utils/aws_clients.rb
200
+ - lib/geoengineer/utils/has_attributes.rb
201
+ - lib/geoengineer/utils/has_lifecycle.rb
202
+ - lib/geoengineer/utils/has_resources.rb
203
+ - lib/geoengineer/utils/has_sub_resources.rb
204
+ - lib/geoengineer/utils/has_validations.rb
205
+ - lib/geoengineer/utils/null_object.rb
206
+ - lib/geoengineer/version.rb
207
+ - spec/environment_spec.rb
208
+ - spec/output_spec.rb
209
+ - spec/project_spec.rb
210
+ - spec/resource_spec.rb
211
+ - spec/resources/aws_db_instance_spec.rb
212
+ - spec/resources/aws_db_parameter_group_spec.rb
213
+ - spec/resources/aws_elasticache_replication_group_spec.rb
214
+ - spec/resources/aws_elasticache_subnet_group_spec.rb
215
+ - spec/resources/aws_elasticcache_cluster_spec.rb
216
+ - spec/resources/aws_elasticcache_parameter_group_spec.rb
217
+ - spec/resources/aws_elasticsearch_domain_spec.rb
218
+ - spec/resources/aws_elb_spec.rb
219
+ - spec/resources/aws_iam_policy.rb
220
+ - spec/resources/aws_iam_user.rb
221
+ - spec/resources/aws_instance_spec.rb
222
+ - spec/resources/aws_proxy_protocol_policy_spec.rb
223
+ - spec/resources/aws_redshift_cluster_spec.rb
224
+ - spec/resources/aws_route53_record_spec.rb
225
+ - spec/resources/aws_route53_zone_spec.rb
226
+ - spec/resources/aws_s3_bucket_spec.rb
227
+ - spec/resources/aws_security_group_spec.rb
228
+ - spec/resources/aws_ses_receipt_rule.rb
229
+ - spec/resources/aws_ses_receipt_rule_set.rb
230
+ - spec/resources/aws_sns_topic_spec.rb
231
+ - spec/resources/aws_sns_topic_subscription.rb
232
+ - spec/resources/aws_sqs_queue_spec.rb
233
+ - spec/rubocop_spec.rb
234
+ - spec/spec_helper.rb
235
+ - spec/sub_resource_spec.rb
236
+ - spec/template_spec.rb
237
+ - spec/utils/has_attributes_spec.rb
238
+ - spec/utils/has_lifecycle_spec.rb
239
+ - spec/utils/has_resources_spec.rb
240
+ - spec/utils/has_subresources_spec.rb
241
+ - spec/utils/has_validations_spec.rb
242
+ - spec/utils/null_object_spec.rb
243
+ homepage: https://coinbase.github.io/geoengineer
244
+ licenses:
245
+ - Apache 2.0
246
+ metadata: {}
247
+ post_install_message:
248
+ rdoc_options: []
249
+ require_paths:
250
+ - lib
251
+ required_ruby_version: !ruby/object:Gem::Requirement
252
+ requirements:
253
+ - - ">="
254
+ - !ruby/object:Gem::Version
255
+ version: 2.2.5
256
+ required_rubygems_version: !ruby/object:Gem::Requirement
257
+ requirements:
258
+ - - ">="
259
+ - !ruby/object:Gem::Version
260
+ version: '0'
261
+ requirements: []
262
+ rubyforge_project:
263
+ rubygems_version: 2.5.1
264
+ signing_key:
265
+ specification_version: 4
266
+ summary: GeoEngineer can codeify, plan and execute changes to cloud resources.
267
+ test_files:
268
+ - spec/environment_spec.rb
269
+ - spec/output_spec.rb
270
+ - spec/project_spec.rb
271
+ - spec/resource_spec.rb
272
+ - spec/resources/aws_db_instance_spec.rb
273
+ - spec/resources/aws_db_parameter_group_spec.rb
274
+ - spec/resources/aws_elasticache_replication_group_spec.rb
275
+ - spec/resources/aws_elasticache_subnet_group_spec.rb
276
+ - spec/resources/aws_elasticcache_cluster_spec.rb
277
+ - spec/resources/aws_elasticcache_parameter_group_spec.rb
278
+ - spec/resources/aws_elasticsearch_domain_spec.rb
279
+ - spec/resources/aws_elb_spec.rb
280
+ - spec/resources/aws_iam_policy.rb
281
+ - spec/resources/aws_iam_user.rb
282
+ - spec/resources/aws_instance_spec.rb
283
+ - spec/resources/aws_proxy_protocol_policy_spec.rb
284
+ - spec/resources/aws_redshift_cluster_spec.rb
285
+ - spec/resources/aws_route53_record_spec.rb
286
+ - spec/resources/aws_route53_zone_spec.rb
287
+ - spec/resources/aws_s3_bucket_spec.rb
288
+ - spec/resources/aws_security_group_spec.rb
289
+ - spec/resources/aws_ses_receipt_rule.rb
290
+ - spec/resources/aws_ses_receipt_rule_set.rb
291
+ - spec/resources/aws_sns_topic_spec.rb
292
+ - spec/resources/aws_sns_topic_subscription.rb
293
+ - spec/resources/aws_sqs_queue_spec.rb
294
+ - spec/rubocop_spec.rb
295
+ - spec/spec_helper.rb
296
+ - spec/sub_resource_spec.rb
297
+ - spec/template_spec.rb
298
+ - spec/utils/has_attributes_spec.rb
299
+ - spec/utils/has_lifecycle_spec.rb
300
+ - spec/utils/has_resources_spec.rb
301
+ - spec/utils/has_subresources_spec.rb
302
+ - spec/utils/has_validations_spec.rb
303
+ - spec/utils/null_object_spec.rb