forger 3.0.1 → 3.0.2

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
  SHA256:
3
- metadata.gz: 7fc8c6d76b747fc55f5fc08740f4c43807f7d9d2a7a74da43f6bdd5814179e5c
4
- data.tar.gz: dbb1fb1fdd04a2e2ae227ae9313aa2f8f361aeff7b2f7f361a155b38e83020d6
3
+ metadata.gz: 4bd013f03609cf1eb83f380a614afe1bb854c7ff2fcfb1af4c34c14a795e7887
4
+ data.tar.gz: 1567afe2aa332f18146c2b1dc69a3d14873f5b7314d217cfc75d4f5e5b2df9f5
5
5
  SHA512:
6
- metadata.gz: d2c4fd91ba29783675f06bbcb7b07955ba9ecfeca86cbf5d8f87de71cdb328567191d6cb9c03703c202078c848827c99f89008ac897916456f91f6375802e2c5
7
- data.tar.gz: a2a01d68a8e4f53774bc6a977de6e13145e057a0e34047e115586ad7799e5bf7cbd05110c63df1690728b524074c7b0f0fac5aa2f501670b79f4beb5fc096c42
6
+ metadata.gz: 0b4d6b1b7b1fe4f4b7f709d383c9bcf8e3c513e813fa9ff23f46e7adba7192bc50f5902fd64e8acd43a401746978427552d23473d8f8cb1d3209559e25aadd04
7
+ data.tar.gz: 84b67d45d264e2cec916e34b40d9111bd1eda750f1910895071f11ef6a130b82633b4f9608e8732d565d44d2d89daa80a01a02d075e044d5ccfa6e650b306311
data/.gitignore CHANGED
@@ -14,3 +14,4 @@ spec/reports
14
14
  test/tmp
15
15
  test/version_tmp
16
16
  tmp
17
+ /Gemfile.lock
@@ -3,6 +3,9 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  This project *tries* to adhere to [Semantic Versioning](http://semver.org/), even before v1.0.
5
5
 
6
+ ## [3.0.2]
7
+ - #17 fix starter template for new cfn_status interface
8
+
6
9
  ## [3.0.1]
7
10
  - edge case when reserverations not immediately found yet
8
11
  - fix `sync_scripts_to_s3` with clean slate no forger bucket created yet
data/README.md CHANGED
@@ -1,5 +1,7 @@
1
1
  # Forger
2
2
 
3
+ [![BoltOps Badge](https://img.boltops.com/boltops/badges/boltops-badge.png)](https://www.boltops.com)
4
+
3
5
  [![CircleCI](https://circleci.com/gh/tongueroo/forger.svg?style=svg)](https://circleci.com/gh/tongueroo/forger)
4
6
 
5
7
  Tool to create AWS EC2 instances consistently with pre-configured settings. The pre-configured settings are stored in the profiles folder of the current project directory.
@@ -1,4 +1,4 @@
1
- require "cfn/status"
1
+ require "cfn_status"
2
2
 
3
3
  class Forger::S3
4
4
  class Bucket
@@ -59,7 +59,7 @@ class Forger::S3
59
59
  def create
60
60
  puts "Creating #{STACK_NAME} stack with the s3 bucket"
61
61
  cfn.create_stack(stack_name: STACK_NAME, template_body: template_body)
62
- status = ::Cfn::Status.new(STACK_NAME)
62
+ status = CfnStatus.new(STACK_NAME)
63
63
  status.wait
64
64
  end
65
65
 
@@ -1,3 +1,3 @@
1
1
  module Forger
2
- VERSION = "3.0.1"
2
+ VERSION = "3.0.2"
3
3
  end
@@ -6,7 +6,7 @@ cd ~ # user-data starts off in / so go to $HOME
6
6
  <%%= add_ssh_key %>
7
7
 
8
8
  # Uncomment to use extract_scripts and use app/scripts
9
- <%%=# extract_scripts(to: "/opt") %>
9
+ <%%= extract_scripts(to: "/opt") %>
10
10
 
11
11
  <%%= yield %>
12
12
 
@@ -12,4 +12,4 @@ development:
12
12
  # extract_scripts:
13
13
  # to: "/opt"
14
14
  # as: "ec2-user"
15
- aws_profile: my-aws-profile
15
+ # aws_profile: my-aws-profile
@@ -0,0 +1,3 @@
1
+ @subnets = ["<%= @subnet %>"]
2
+ @security_group_ids = ["<%= @security_group %>"]
3
+ @key1 = ENV['KEY1']
@@ -17,8 +17,8 @@ iam_instance_profile:
17
17
  # name: ExampleIamProfile
18
18
  <% end -%>
19
19
  # public network settings
20
- security_group_ids: <%%= config["security_group_ids"] %>
21
- subnet_id: <%%= config["subnets"].shuffle.first %>
20
+ security_group_ids: <%%= @security_group_ids %>
21
+ subnet_id: <%%= @subnets.shuffle.first %>
22
22
  # block_device_mappings:
23
23
  # - device_name: /dev/xvda
24
24
  # ebs:
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: forger
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.1
4
+ version: 3.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tung Nguyen
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-09-04 00:00:00.000000000 Z
11
+ date: 2020-06-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -289,7 +289,6 @@ files:
289
289
  - ".rspec"
290
290
  - CHANGELOG.md
291
291
  - Gemfile
292
- - Gemfile.lock
293
292
  - Guardfile
294
293
  - LICENSE.txt
295
294
  - README.md
@@ -398,7 +397,7 @@ files:
398
397
  - lib/templates/default/app/user_data/bootstrap.sh.tt
399
398
  - lib/templates/default/app/user_data/layouts/default.sh.tt
400
399
  - lib/templates/default/config/settings.yml.tt
401
- - lib/templates/default/config/variables/development.yml.tt
400
+ - lib/templates/default/config/variables/development.rb.tt
402
401
  - lib/templates/default/profiles/default.yml.tt
403
402
  - spec/fixtures/demo_project/.env.test
404
403
  - spec/fixtures/demo_project/app/user_data/bootstrap.sh
@@ -428,7 +427,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
428
427
  - !ruby/object:Gem::Version
429
428
  version: '0'
430
429
  requirements: []
431
- rubygems_version: 3.0.6
430
+ rubygems_version: 3.1.2
432
431
  signing_key:
433
432
  specification_version: 4
434
433
  summary: Create EC2 Instances with preconfigured settings
@@ -1,141 +0,0 @@
1
- PATH
2
- remote: .
3
- specs:
4
- forger (3.0.0)
5
- activesupport
6
- aws-sdk-cloudformation
7
- aws-sdk-ec2
8
- aws-sdk-s3
9
- cfn-status
10
- dotenv
11
- filesize
12
- hashie
13
- memoist
14
- rainbow
15
- render_me_pretty
16
- thor
17
- zeitwerk
18
-
19
- GEM
20
- remote: https://rubygems.org/
21
- specs:
22
- activesupport (6.0.0)
23
- concurrent-ruby (~> 1.0, >= 1.0.2)
24
- i18n (>= 0.7, < 2)
25
- minitest (~> 5.1)
26
- tzinfo (~> 1.1)
27
- zeitwerk (~> 2.1, >= 2.1.8)
28
- aws-eventstream (1.0.3)
29
- aws-partitions (1.207.0)
30
- aws-sdk-cloudformation (1.25.0)
31
- aws-sdk-core (~> 3, >= 3.61.1)
32
- aws-sigv4 (~> 1.1)
33
- aws-sdk-core (3.65.1)
34
- aws-eventstream (~> 1.0, >= 1.0.2)
35
- aws-partitions (~> 1.0)
36
- aws-sigv4 (~> 1.1)
37
- jmespath (~> 1.0)
38
- aws-sdk-ec2 (1.106.0)
39
- aws-sdk-core (~> 3, >= 3.61.1)
40
- aws-sigv4 (~> 1.1)
41
- aws-sdk-kms (1.24.0)
42
- aws-sdk-core (~> 3, >= 3.61.1)
43
- aws-sigv4 (~> 1.1)
44
- aws-sdk-s3 (1.48.0)
45
- aws-sdk-core (~> 3, >= 3.61.1)
46
- aws-sdk-kms (~> 1)
47
- aws-sigv4 (~> 1.1)
48
- aws-sigv4 (1.1.0)
49
- aws-eventstream (~> 1.0, >= 1.0.2)
50
- byebug (11.0.1)
51
- cfn-status (0.2.0)
52
- aws-sdk-cloudformation
53
- coderay (1.1.2)
54
- concurrent-ruby (1.1.5)
55
- diff-lcs (1.3)
56
- dotenv (2.7.5)
57
- ffi (1.11.1)
58
- filesize (0.2.0)
59
- formatador (0.2.5)
60
- guard (2.15.0)
61
- formatador (>= 0.2.4)
62
- listen (>= 2.7, < 4.0)
63
- lumberjack (>= 1.0.12, < 2.0)
64
- nenv (~> 0.1)
65
- notiffany (~> 0.0)
66
- pry (>= 0.9.12)
67
- shellany (~> 0.0)
68
- thor (>= 0.18.1)
69
- guard-bundler (2.2.1)
70
- bundler (>= 1.3.0, < 3)
71
- guard (~> 2.2)
72
- guard-compat (~> 1.1)
73
- guard-compat (1.2.1)
74
- guard-rspec (4.7.3)
75
- guard (~> 2.1)
76
- guard-compat (~> 1.1)
77
- rspec (>= 2.99.0, < 4.0)
78
- hashie (3.6.0)
79
- i18n (1.6.0)
80
- concurrent-ruby (~> 1.0)
81
- jmespath (1.4.0)
82
- listen (3.1.5)
83
- rb-fsevent (~> 0.9, >= 0.9.4)
84
- rb-inotify (~> 0.9, >= 0.9.7)
85
- ruby_dep (~> 1.2)
86
- lumberjack (1.0.13)
87
- memoist (0.16.0)
88
- method_source (0.9.2)
89
- minitest (5.11.3)
90
- nenv (0.3.0)
91
- notiffany (0.1.3)
92
- nenv (~> 0.1)
93
- shellany (~> 0.0)
94
- pry (0.12.2)
95
- coderay (~> 1.1.0)
96
- method_source (~> 0.9.0)
97
- rainbow (3.0.0)
98
- rake (12.3.3)
99
- rb-fsevent (0.10.3)
100
- rb-inotify (0.10.0)
101
- ffi (~> 1.0)
102
- render_me_pretty (0.8.3)
103
- activesupport
104
- rainbow
105
- tilt
106
- rspec (3.8.0)
107
- rspec-core (~> 3.8.0)
108
- rspec-expectations (~> 3.8.0)
109
- rspec-mocks (~> 3.8.0)
110
- rspec-core (3.8.2)
111
- rspec-support (~> 3.8.0)
112
- rspec-expectations (3.8.4)
113
- diff-lcs (>= 1.2.0, < 2.0)
114
- rspec-support (~> 3.8.0)
115
- rspec-mocks (3.8.1)
116
- diff-lcs (>= 1.2.0, < 2.0)
117
- rspec-support (~> 3.8.0)
118
- rspec-support (3.8.2)
119
- ruby_dep (1.5.0)
120
- shellany (0.0.1)
121
- thor (0.20.3)
122
- thread_safe (0.3.6)
123
- tilt (2.0.9)
124
- tzinfo (1.2.5)
125
- thread_safe (~> 0.1)
126
- zeitwerk (2.1.9)
127
-
128
- PLATFORMS
129
- ruby
130
-
131
- DEPENDENCIES
132
- bundler
133
- byebug
134
- forger!
135
- guard
136
- guard-bundler
137
- guard-rspec
138
- rake
139
-
140
- BUNDLED WITH
141
- 2.0.2
@@ -1,6 +0,0 @@
1
- ---
2
- subnets:
3
- - <%= @subnet %>
4
- security_group_ids:
5
- - <%= @security_group %>
6
- key1: <%%= ENV['KEY1'] %>