easy_eb 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: c6b66c036ac9693a558d1df5f475618fe5ccbb44c625e18910029f69e433974c
4
+ data.tar.gz: bb2eaaa3ba89339cf49a3c4582b6b818b9b78334eecd438864b2a5e5bb3b003c
5
+ SHA512:
6
+ metadata.gz: 7d06399c166ecf532efc5d1c23948595d116e44bc7ae8ae4daef1055b700ad0f50d75bd3fc5a8175f341bd5acfe1190cef2c3be948c5a2f3ef4ab68b4e777281
7
+ data.tar.gz: 6c00c7b035e1e8b8ce683620da6cb0b58b8807ced4c9c372a8caea6109e6d053f78de207901557592d4483881e20a72181a9d07f6071d4e976b875da57e8c2a6
data/CHANGELOG.md ADDED
@@ -0,0 +1,5 @@
1
+ ## [Unreleased]
2
+
3
+ ## [0.1.0] - 2022-08-09
4
+
5
+ - Initial release
@@ -0,0 +1,84 @@
1
+ # Contributor Covenant Code of Conduct
2
+
3
+ ## Our Pledge
4
+
5
+ We as members, contributors, and leaders pledge to make participation in our community a harassment-free experience for everyone, regardless of age, body size, visible or invisible disability, ethnicity, sex characteristics, gender identity and expression, level of experience, education, socio-economic status, nationality, personal appearance, race, religion, or sexual identity and orientation.
6
+
7
+ We pledge to act and interact in ways that contribute to an open, welcoming, diverse, inclusive, and healthy community.
8
+
9
+ ## Our Standards
10
+
11
+ Examples of behavior that contributes to a positive environment for our community include:
12
+
13
+ * Demonstrating empathy and kindness toward other people
14
+ * Being respectful of differing opinions, viewpoints, and experiences
15
+ * Giving and gracefully accepting constructive feedback
16
+ * Accepting responsibility and apologizing to those affected by our mistakes, and learning from the experience
17
+ * Focusing on what is best not just for us as individuals, but for the overall community
18
+
19
+ Examples of unacceptable behavior include:
20
+
21
+ * The use of sexualized language or imagery, and sexual attention or
22
+ advances of any kind
23
+ * Trolling, insulting or derogatory comments, and personal or political attacks
24
+ * Public or private harassment
25
+ * Publishing others' private information, such as a physical or email
26
+ address, without their explicit permission
27
+ * Other conduct which could reasonably be considered inappropriate in a
28
+ professional setting
29
+
30
+ ## Enforcement Responsibilities
31
+
32
+ Community leaders are responsible for clarifying and enforcing our standards of acceptable behavior and will take appropriate and fair corrective action in response to any behavior that they deem inappropriate, threatening, offensive, or harmful.
33
+
34
+ Community leaders have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, and will communicate reasons for moderation decisions when appropriate.
35
+
36
+ ## Scope
37
+
38
+ This Code of Conduct applies within all community spaces, and also applies when an individual is officially representing the community in public spaces. Examples of representing our community include using an official e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event.
39
+
40
+ ## Enforcement
41
+
42
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be reported to the community leaders responsible for enforcement at kaleb.lape@gmail.com. All complaints will be reviewed and investigated promptly and fairly.
43
+
44
+ All community leaders are obligated to respect the privacy and security of the reporter of any incident.
45
+
46
+ ## Enforcement Guidelines
47
+
48
+ Community leaders will follow these Community Impact Guidelines in determining the consequences for any action they deem in violation of this Code of Conduct:
49
+
50
+ ### 1. Correction
51
+
52
+ **Community Impact**: Use of inappropriate language or other behavior deemed unprofessional or unwelcome in the community.
53
+
54
+ **Consequence**: A private, written warning from community leaders, providing clarity around the nature of the violation and an explanation of why the behavior was inappropriate. A public apology may be requested.
55
+
56
+ ### 2. Warning
57
+
58
+ **Community Impact**: A violation through a single incident or series of actions.
59
+
60
+ **Consequence**: A warning with consequences for continued behavior. No interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, for a specified period of time. This includes avoiding interactions in community spaces as well as external channels like social media. Violating these terms may lead to a temporary or permanent ban.
61
+
62
+ ### 3. Temporary Ban
63
+
64
+ **Community Impact**: A serious violation of community standards, including sustained inappropriate behavior.
65
+
66
+ **Consequence**: A temporary ban from any sort of interaction or public communication with the community for a specified period of time. No public or private interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, is allowed during this period. Violating these terms may lead to a permanent ban.
67
+
68
+ ### 4. Permanent Ban
69
+
70
+ **Community Impact**: Demonstrating a pattern of violation of community standards, including sustained inappropriate behavior, harassment of an individual, or aggression toward or disparagement of classes of individuals.
71
+
72
+ **Consequence**: A permanent ban from any sort of public interaction within the community.
73
+
74
+ ## Attribution
75
+
76
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 2.0,
77
+ available at https://www.contributor-covenant.org/version/2/0/code_of_conduct.html.
78
+
79
+ Community Impact Guidelines were inspired by [Mozilla's code of conduct enforcement ladder](https://github.com/mozilla/diversity).
80
+
81
+ [homepage]: https://www.contributor-covenant.org
82
+
83
+ For answers to common questions about this code of conduct, see the FAQ at
84
+ https://www.contributor-covenant.org/faq. Translations are available at https://www.contributor-covenant.org/translations.
data/Gemfile ADDED
@@ -0,0 +1,12 @@
1
+ # frozen_string_literal: true
2
+
3
+ source "https://rubygems.org"
4
+
5
+ # Specify your gem's dependencies in easy_eb.gemspec
6
+ gemspec
7
+
8
+ gem "rake", "~> 13.0"
9
+
10
+ gem "minitest", "~> 5.0"
11
+
12
+ gem "standard"
data/Gemfile.lock ADDED
@@ -0,0 +1,51 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ easy_eb (0.1.0)
5
+ thor
6
+
7
+ GEM
8
+ remote: https://rubygems.org/
9
+ specs:
10
+ ast (2.4.2)
11
+ minitest (5.16.0)
12
+ parallel (1.22.1)
13
+ parser (3.1.2.0)
14
+ ast (~> 2.4.1)
15
+ rainbow (3.1.1)
16
+ rake (13.0.6)
17
+ regexp_parser (2.5.0)
18
+ rexml (3.2.5)
19
+ rubocop (1.28.2)
20
+ parallel (~> 1.10)
21
+ parser (>= 3.1.0.0)
22
+ rainbow (>= 2.2.2, < 4.0)
23
+ regexp_parser (>= 1.8, < 3.0)
24
+ rexml
25
+ rubocop-ast (>= 1.17.0, < 2.0)
26
+ ruby-progressbar (~> 1.7)
27
+ unicode-display_width (>= 1.4.0, < 3.0)
28
+ rubocop-ast (1.17.0)
29
+ parser (>= 3.1.1.0)
30
+ rubocop-performance (1.13.3)
31
+ rubocop (>= 1.7.0, < 2.0)
32
+ rubocop-ast (>= 0.4.0)
33
+ ruby-progressbar (1.11.0)
34
+ standard (1.11.0)
35
+ rubocop (= 1.28.2)
36
+ rubocop-performance (= 1.13.3)
37
+ thor (1.2.1)
38
+ unicode-display_width (2.1.0)
39
+
40
+ PLATFORMS
41
+ x86_64-darwin-19
42
+ x86_64-linux
43
+
44
+ DEPENDENCIES
45
+ easy_eb!
46
+ minitest (~> 5.0)
47
+ rake (~> 13.0)
48
+ standard
49
+
50
+ BUNDLED WITH
51
+ 2.3.9
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2022 Kaleb Lape
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,45 @@
1
+ # Easy EB
2
+
3
+ Slap an easy button on your Elastic Beanstalk config.
4
+
5
+ ## Installation
6
+
7
+ Install the gem and add to the application's Gemfile by executing:
8
+
9
+ $ bundle add easy_eb
10
+
11
+ If bundler is not being used to manage dependencies, install the gem by executing:
12
+
13
+ $ gem install easy_eb
14
+
15
+ ## Usage
16
+
17
+ ### Installation
18
+
19
+ Run this and commit the changes before deploying your application.
20
+
21
+ $ ezeb install
22
+
23
+ ### Day to day
24
+
25
+ Check out the help for the latest and greatest.
26
+
27
+ $ ezeb help
28
+
29
+ ## Development
30
+
31
+ After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake test` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
32
+
33
+ To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and the created tag, and push the `.gem` file to [rubygems.org](https://rubygems.org).
34
+
35
+ ## Contributing
36
+
37
+ Bug reports and pull requests are welcome on GitHub at https://github.com/pingortle/easy_eb. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [code of conduct](https://github.com/pingortle/easy_eb/blob/master/CODE_OF_CONDUCT.md).
38
+
39
+ ## License
40
+
41
+ The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
42
+
43
+ ## Code of Conduct
44
+
45
+ Everyone interacting in the EasyEb project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/pingortle/easy_eb/blob/master/CODE_OF_CONDUCT.md).
data/Rakefile ADDED
@@ -0,0 +1,12 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "bundler/gem_tasks"
4
+ require "rake/testtask"
5
+
6
+ Rake::TestTask.new(:test) do |t|
7
+ t.libs << "test"
8
+ t.libs << "lib"
9
+ t.test_files = FileList["test/**/test_*.rb"]
10
+ end
11
+
12
+ task default: :test
data/easy_eb.gemspec ADDED
@@ -0,0 +1,38 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative "lib/easy_eb/version"
4
+
5
+ Gem::Specification.new do |spec|
6
+ spec.name = "easy_eb"
7
+ spec.version = EasyEb::VERSION
8
+ spec.authors = ["Kaleb Lape"]
9
+ spec.email = ["kaleb.lape@gmail.com"]
10
+
11
+ spec.summary = "Make Elastic Beanstalk easier to work with."
12
+ spec.description = "Ungerware is a software development shop crafting solutions for iOS, Android, and Web. Specializing in IoT and other hardware initiatives, Ungerware uses the latest technologies to develop best-in-class business and consumer apps."
13
+ spec.homepage = "https://unger-ware.com"
14
+ spec.license = "MIT"
15
+ spec.required_ruby_version = ">= 2.6.0"
16
+
17
+ spec.metadata["allowed_push_host"] = "https://rubygems.org"
18
+
19
+ spec.metadata["homepage_uri"] = spec.homepage
20
+ spec.metadata["source_code_uri"] = "https://github.com/Ungerware/easy_eb.git"
21
+ spec.metadata["changelog_uri"] = "https://github.com/Ungerware/easy_eb/blob/master/CHANGELOG.md"
22
+
23
+ # Specify which files should be added to the gem when it is released.
24
+ # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
25
+ spec.files = Dir.chdir(File.expand_path(__dir__)) do
26
+ `git ls-files -z`.split("\x0").reject do |f|
27
+ (f == __FILE__) || f.match(%r{\A(?:(?:bin|test|spec|features)/|\.(?:git|travis|circleci)|appveyor)})
28
+ end
29
+ end
30
+ spec.bindir = "exe"
31
+ spec.executables = spec.files.grep(%r{\Aexe/}) { |f| File.basename(f) }
32
+ spec.require_paths = ["lib"]
33
+
34
+ spec.add_dependency "thor"
35
+
36
+ # For more information and examples about making a new gem, check out our
37
+ # guide at: https://bundler.io/guides/creating_gem.html
38
+ end
data/exe/ezeb ADDED
@@ -0,0 +1,6 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require "easy_eb"
4
+ require "easy_eb/cli"
5
+
6
+ EasyEb::CLI.start
@@ -0,0 +1,25 @@
1
+ require "thor"
2
+
3
+ module EasyEb
4
+ class CLI < Thor
5
+ desc "create-environment TARGET [--slug SLUG]", "Creates an EB environment for the target stack (e.g. staging or production) with a unique slug appended"
6
+ option :slug, type: :string
7
+ def create_environment(target)
8
+ EasyEb::Environment.create!(target: target, **options.transform_keys(&:to_sym))
9
+ end
10
+
11
+ desc "ssh [--environment ENVIRONMENT] [COMMAND]", "Intelligent ssh for elastic beanstalk"
12
+ option :environment, type: :string
13
+ option :ssh, type: :string
14
+ option :eb_flags, type: :string
15
+ option :env_command, type: :string
16
+ def ssh(*command)
17
+ EasyEb::Ssh.start!(command: command.any? ? command.join(" ") : nil, **options.transform_keys(&:to_sym))
18
+ end
19
+
20
+ desc "install", "Install essential eb helpers to be checked into your repo"
21
+ def install
22
+ EasyEb::Generators::Install.start
23
+ end
24
+ end
25
+ end
@@ -0,0 +1,27 @@
1
+ require "json"
2
+ require "yaml"
3
+
4
+ module EasyEb
5
+ class Environment
6
+ SLUGS = JSON.parse(File.read("#{__dir__}/firstNames.json")).fetch("firstNames")
7
+
8
+ def self.create!(target:, slug: SLUGS.sample)
9
+ eb_config = YAML.safe_load(File.read(".elasticbeanstalk/config.yml"))
10
+ application_name = eb_config.dig("global", "application_name")
11
+
12
+ stack_name = "#{application_name}-#{target}"
13
+
14
+ environment_name = "#{stack_name}-#{slug}"
15
+
16
+ if environment_name.length > 40
17
+ raise "Failed to create a valid Elastic Beanstalk environment with name '#{environment_name}'. Must be 40 characters or less."
18
+ end
19
+
20
+ system("eb config put #{target}", exception: true)
21
+ system("eb create #{environment_name} --cfg #{target}", exception: true)
22
+
23
+ puts("Success! Now you may want to run elastic beanstalk commands like this:")
24
+ puts("eb deploy #{environment_name}")
25
+ end
26
+ end
27
+ end
@@ -0,0 +1,401 @@
1
+ {
2
+ "description": "First names of men and women, pulled from the US Census for the 2000s.",
3
+ "source": "https://raw.githubusercontent.com/dariusk/corpora/master/data/humans/firstNames.json",
4
+ "firstNames": [
5
+ "Aaliyah",
6
+ "Aaron",
7
+ "Abby",
8
+ "Abigail",
9
+ "Abraham",
10
+ "Adam",
11
+ "Addison",
12
+ "Adrian",
13
+ "Adriana",
14
+ "Adrianna",
15
+ "Aidan",
16
+ "Aiden",
17
+ "Alan",
18
+ "Alana",
19
+ "Alejandro",
20
+ "Alex",
21
+ "Alexa",
22
+ "Alexander",
23
+ "Alexandra",
24
+ "Alexandria",
25
+ "Alexia",
26
+ "Alexis",
27
+ "Alicia",
28
+ "Allison",
29
+ "Alondra",
30
+ "Alyssa",
31
+ "Amanda",
32
+ "Amber",
33
+ "Amelia",
34
+ "Amy",
35
+ "Ana",
36
+ "Andrea",
37
+ "Andres",
38
+ "Andrew",
39
+ "Angel",
40
+ "Angela",
41
+ "Angelica",
42
+ "Angelina",
43
+ "Anna",
44
+ "Anthony",
45
+ "Antonio",
46
+ "Ariana",
47
+ "Arianna",
48
+ "Ashley",
49
+ "Ashlyn",
50
+ "Ashton",
51
+ "Aubrey",
52
+ "Audrey",
53
+ "Austin",
54
+ "Autumn",
55
+ "Ava",
56
+ "Avery",
57
+ "Ayden",
58
+ "Bailey",
59
+ "Benjamin",
60
+ "Bianca",
61
+ "Blake",
62
+ "Braden",
63
+ "Bradley",
64
+ "Brady",
65
+ "Brandon",
66
+ "Brayden",
67
+ "Breanna",
68
+ "Brendan",
69
+ "Brian",
70
+ "Briana",
71
+ "Brianna",
72
+ "Brittany",
73
+ "Brody",
74
+ "Brooke",
75
+ "Brooklyn",
76
+ "Bryan",
77
+ "Bryce",
78
+ "Bryson",
79
+ "Caden",
80
+ "Caitlin",
81
+ "Caitlyn",
82
+ "Caleb",
83
+ "Cameron",
84
+ "Camila",
85
+ "Carlos",
86
+ "Caroline",
87
+ "Carson",
88
+ "Carter",
89
+ "Cassandra",
90
+ "Cassidy",
91
+ "Catherine",
92
+ "Cesar",
93
+ "Charles",
94
+ "Charlotte",
95
+ "Chase",
96
+ "Chelsea",
97
+ "Cheyenne",
98
+ "Chloe",
99
+ "Christian",
100
+ "Christina",
101
+ "Christopher",
102
+ "Claire",
103
+ "Cody",
104
+ "Colby",
105
+ "Cole",
106
+ "Colin",
107
+ "Collin",
108
+ "Colton",
109
+ "Conner",
110
+ "Connor",
111
+ "Cooper",
112
+ "Courtney",
113
+ "Cristian",
114
+ "Crystal",
115
+ "Daisy",
116
+ "Dakota",
117
+ "Dalton",
118
+ "Damian",
119
+ "Daniel",
120
+ "Daniela",
121
+ "Danielle",
122
+ "David",
123
+ "Delaney",
124
+ "Derek",
125
+ "Destiny",
126
+ "Devin",
127
+ "Devon",
128
+ "Diana",
129
+ "Diego",
130
+ "Dominic",
131
+ "Donovan",
132
+ "Dylan",
133
+ "Edgar",
134
+ "Eduardo",
135
+ "Edward",
136
+ "Edwin",
137
+ "Eli",
138
+ "Elias",
139
+ "Elijah",
140
+ "Elizabeth",
141
+ "Ella",
142
+ "Ellie",
143
+ "Emily",
144
+ "Emma",
145
+ "Emmanuel",
146
+ "Eric",
147
+ "Erica",
148
+ "Erick",
149
+ "Erik",
150
+ "Erin",
151
+ "Ethan",
152
+ "Eva",
153
+ "Evan",
154
+ "Evelyn",
155
+ "Faith",
156
+ "Fernando",
157
+ "Francisco",
158
+ "Gabriel",
159
+ "Gabriela",
160
+ "Gabriella",
161
+ "Gabrielle",
162
+ "Gage",
163
+ "Garrett",
164
+ "Gavin",
165
+ "Genesis",
166
+ "George",
167
+ "Gianna",
168
+ "Giovanni",
169
+ "Giselle",
170
+ "Grace",
171
+ "Gracie",
172
+ "Grant",
173
+ "Gregory",
174
+ "Hailey",
175
+ "Haley",
176
+ "Hannah",
177
+ "Hayden",
178
+ "Hector",
179
+ "Henry",
180
+ "Hope",
181
+ "Hunter",
182
+ "Ian",
183
+ "Isaac",
184
+ "Isabel",
185
+ "Isabella",
186
+ "Isabelle",
187
+ "Isaiah",
188
+ "Ivan",
189
+ "Jack",
190
+ "Jackson",
191
+ "Jacob",
192
+ "Jacqueline",
193
+ "Jada",
194
+ "Jade",
195
+ "Jaden",
196
+ "Jake",
197
+ "Jalen",
198
+ "James",
199
+ "Jared",
200
+ "Jasmin",
201
+ "Jasmine",
202
+ "Jason",
203
+ "Javier",
204
+ "Jayden",
205
+ "Jayla",
206
+ "Jazmin",
207
+ "Jeffrey",
208
+ "Jenna",
209
+ "Jennifer",
210
+ "Jeremiah",
211
+ "Jeremy",
212
+ "Jesse",
213
+ "Jessica",
214
+ "Jesus",
215
+ "Jillian",
216
+ "Jocelyn",
217
+ "Joel",
218
+ "John",
219
+ "Johnathan",
220
+ "Jonah",
221
+ "Jonathan",
222
+ "Jordan",
223
+ "Jordyn",
224
+ "Jorge",
225
+ "Jose",
226
+ "Joseph",
227
+ "Joshua",
228
+ "Josiah",
229
+ "Juan",
230
+ "Julia",
231
+ "Julian",
232
+ "Juliana",
233
+ "Justin",
234
+ "Kaden",
235
+ "Kaitlyn",
236
+ "Kaleb",
237
+ "Karen",
238
+ "Karina",
239
+ "Kate",
240
+ "Katelyn",
241
+ "Katherine",
242
+ "Kathryn",
243
+ "Katie",
244
+ "Kayla",
245
+ "Kaylee",
246
+ "Kelly",
247
+ "Kelsey",
248
+ "Kendall",
249
+ "Kennedy",
250
+ "Kenneth",
251
+ "Kevin",
252
+ "Kiara",
253
+ "Kimberly",
254
+ "Kyle",
255
+ "Kylee",
256
+ "Kylie",
257
+ "Landon",
258
+ "Laura",
259
+ "Lauren",
260
+ "Layla",
261
+ "Leah",
262
+ "Leonardo",
263
+ "Leslie",
264
+ "Levi",
265
+ "Liam",
266
+ "Liliana",
267
+ "Lillian",
268
+ "Lilly",
269
+ "Lily",
270
+ "Lindsey",
271
+ "Logan",
272
+ "Lucas",
273
+ "Lucy",
274
+ "Luis",
275
+ "Luke",
276
+ "Lydia",
277
+ "Mackenzie",
278
+ "Madeline",
279
+ "Madelyn",
280
+ "Madison",
281
+ "Makayla",
282
+ "Makenzie",
283
+ "Malachi",
284
+ "Manuel",
285
+ "Marco",
286
+ "Marcus",
287
+ "Margaret",
288
+ "Maria",
289
+ "Mariah",
290
+ "Mario",
291
+ "Marissa",
292
+ "Mark",
293
+ "Martin",
294
+ "Mary",
295
+ "Mason",
296
+ "Matthew",
297
+ "Max",
298
+ "Maxwell",
299
+ "Maya",
300
+ "Mckenzie",
301
+ "Megan",
302
+ "Melanie",
303
+ "Melissa",
304
+ "Mia",
305
+ "Micah",
306
+ "Michael",
307
+ "Michelle",
308
+ "Miguel",
309
+ "Mikayla",
310
+ "Miranda",
311
+ "Molly",
312
+ "Morgan",
313
+ "Mya",
314
+ "Naomi",
315
+ "Natalia",
316
+ "Natalie",
317
+ "Nathan",
318
+ "Nathaniel",
319
+ "Nevaeh",
320
+ "Nicholas",
321
+ "Nicolas",
322
+ "Nicole",
323
+ "Noah",
324
+ "Nolan",
325
+ "Oliver",
326
+ "Olivia",
327
+ "Omar",
328
+ "Oscar",
329
+ "Owen",
330
+ "Paige",
331
+ "Parker",
332
+ "Patrick",
333
+ "Paul",
334
+ "Payton",
335
+ "Peter",
336
+ "Peyton",
337
+ "Preston",
338
+ "Rachel",
339
+ "Raymond",
340
+ "Reagan",
341
+ "Rebecca",
342
+ "Ricardo",
343
+ "Richard",
344
+ "Riley",
345
+ "Robert",
346
+ "Ruby",
347
+ "Ryan",
348
+ "Rylee",
349
+ "Sabrina",
350
+ "Sadie",
351
+ "Samantha",
352
+ "Samuel",
353
+ "Sara",
354
+ "Sarah",
355
+ "Savannah",
356
+ "Sean",
357
+ "Sebastian",
358
+ "Serenity",
359
+ "Sergio",
360
+ "Seth",
361
+ "Shane",
362
+ "Shawn",
363
+ "Shelby",
364
+ "Sierra",
365
+ "Skylar",
366
+ "Sofia",
367
+ "Sophia",
368
+ "Sophie",
369
+ "Spencer",
370
+ "Stephanie",
371
+ "Stephen",
372
+ "Steven",
373
+ "Summer",
374
+ "Sydney",
375
+ "Tanner",
376
+ "Taylor",
377
+ "Thomas",
378
+ "Tiffany",
379
+ "Timothy",
380
+ "Travis",
381
+ "Trenton",
382
+ "Trevor",
383
+ "Trinity",
384
+ "Tristan",
385
+ "Tyler",
386
+ "Valeria",
387
+ "Valerie",
388
+ "Vanessa",
389
+ "Veronica",
390
+ "Victor",
391
+ "Victoria",
392
+ "Vincent",
393
+ "Wesley",
394
+ "William",
395
+ "Wyatt",
396
+ "Xavier",
397
+ "Zachary",
398
+ "Zoe",
399
+ "Zoey"
400
+ ]
401
+ }
@@ -0,0 +1,21 @@
1
+ require "thor/group"
2
+
3
+ module EasyEb
4
+ module Generators
5
+ class Install < Thor::Group
6
+ include Thor::Actions
7
+
8
+ def self.source_root
9
+ "#{File.dirname(__FILE__)}/template"
10
+ end
11
+
12
+ def copy_helper_scripts
13
+ copy_file "bin/ebenv"
14
+ copy_file "bin/eb-exec-hook"
15
+
16
+ chmod "bin/ebenv", 777
17
+ chmod "bin/eb-exec-hook", 777
18
+ end
19
+ end
20
+ end
21
+ end
@@ -0,0 +1,16 @@
1
+ #!/usr/bin/env bash
2
+ set -ex
3
+
4
+ CONFIGHOOK_PATH="$1"
5
+
6
+ SCRIPT="$(basename "$CONFIGHOOK_PATH")"
7
+ DIR="$(dirname "$CONFIGHOOK_PATH")"
8
+ CONFIGHOOKS_PATH="$(dirname "$DIR")"
9
+ HOOKS_PATH="${CONFIGHOOKS_PATH/confighooks/hooks}"
10
+ HOOK="$(basename "$DIR")"
11
+
12
+ HOOK_PATH="$HOOKS_PATH/$HOOK/$SCRIPT"
13
+
14
+ echo "Executing platform hook '$HOOK_PATH' from '$CONFIGHOOK_PATH'"
15
+
16
+ "$HOOK_PATH"
@@ -0,0 +1,12 @@
1
+ #!/usr/bin/env ruby
2
+ require "json"
3
+
4
+ EB_ENV = JSON.load(`/opt/elasticbeanstalk/bin/get-config environment`)
5
+
6
+ system(
7
+ {
8
+ "PATH" => "#{Dir.pwd}/bin:#{ENV["PATH"]}"
9
+ }.merge(EB_ENV),
10
+ ARGV.join(" "),
11
+ exception: true
12
+ )
@@ -0,0 +1,21 @@
1
+ module EasyEb
2
+ class Ssh
3
+ def self.start!(environment: nil, command: nil, ssh: nil, eb_flags: nil, env_command: "bin/ebenv")
4
+ bash_args = command && "-c \\\"#{env_command} #{command}\\\""
5
+ tty_flag = command && "-t"
6
+ command_arg = [
7
+ tty_flag,
8
+ "cd /var/app/current; sudo bash -i #{bash_args}"
9
+ ].compact.join(" ")
10
+
11
+ args = [
12
+ eb_flags,
13
+ environment,
14
+ ssh,
15
+ "--command \"#{command_arg}\""
16
+ ].compact.join(" ")
17
+
18
+ system("eb ssh #{args}", exception: true)
19
+ end
20
+ end
21
+ end
@@ -0,0 +1,5 @@
1
+ # frozen_string_literal: true
2
+
3
+ module EasyEb
4
+ VERSION = "0.1.0"
5
+ end
data/lib/easy_eb.rb ADDED
@@ -0,0 +1,10 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative "easy_eb/environment"
4
+ require_relative "easy_eb/generators/install"
5
+ require_relative "easy_eb/ssh"
6
+ require_relative "easy_eb/version"
7
+
8
+ module EasyEb
9
+ class Error < StandardError; end
10
+ end
data/sig/easy_eb.rbs ADDED
@@ -0,0 +1,4 @@
1
+ module EasyEb
2
+ VERSION: String
3
+ # See the writing guide of rbs: https://github.com/ruby/rbs#guides
4
+ end
metadata ADDED
@@ -0,0 +1,83 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: easy_eb
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Kaleb Lape
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2022-08-10 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: thor
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: '0'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: '0'
27
+ description: Ungerware is a software development shop crafting solutions for iOS,
28
+ Android, and Web. Specializing in IoT and other hardware initiatives, Ungerware
29
+ uses the latest technologies to develop best-in-class business and consumer apps.
30
+ email:
31
+ - kaleb.lape@gmail.com
32
+ executables:
33
+ - ezeb
34
+ extensions: []
35
+ extra_rdoc_files: []
36
+ files:
37
+ - CHANGELOG.md
38
+ - CODE_OF_CONDUCT.md
39
+ - Gemfile
40
+ - Gemfile.lock
41
+ - LICENSE.txt
42
+ - README.md
43
+ - Rakefile
44
+ - easy_eb.gemspec
45
+ - exe/ezeb
46
+ - lib/easy_eb.rb
47
+ - lib/easy_eb/cli.rb
48
+ - lib/easy_eb/environment.rb
49
+ - lib/easy_eb/firstNames.json
50
+ - lib/easy_eb/generators/install.rb
51
+ - lib/easy_eb/generators/template/bin/eb-exec-hook
52
+ - lib/easy_eb/generators/template/bin/ebenv
53
+ - lib/easy_eb/ssh.rb
54
+ - lib/easy_eb/version.rb
55
+ - sig/easy_eb.rbs
56
+ homepage: https://unger-ware.com
57
+ licenses:
58
+ - MIT
59
+ metadata:
60
+ allowed_push_host: https://rubygems.org
61
+ homepage_uri: https://unger-ware.com
62
+ source_code_uri: https://github.com/Ungerware/easy_eb.git
63
+ changelog_uri: https://github.com/Ungerware/easy_eb/blob/master/CHANGELOG.md
64
+ post_install_message:
65
+ rdoc_options: []
66
+ require_paths:
67
+ - lib
68
+ required_ruby_version: !ruby/object:Gem::Requirement
69
+ requirements:
70
+ - - ">="
71
+ - !ruby/object:Gem::Version
72
+ version: 2.6.0
73
+ required_rubygems_version: !ruby/object:Gem::Requirement
74
+ requirements:
75
+ - - ">="
76
+ - !ruby/object:Gem::Version
77
+ version: '0'
78
+ requirements: []
79
+ rubygems_version: 3.3.9
80
+ signing_key:
81
+ specification_version: 4
82
+ summary: Make Elastic Beanstalk easier to work with.
83
+ test_files: []