cpl 1.1.2 → 1.3.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 (47) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/check_cpln_links.yml +19 -0
  3. data/.github/workflows/rspec.yml +1 -1
  4. data/.overcommit.yml +3 -0
  5. data/CHANGELOG.md +47 -2
  6. data/CONTRIBUTING.md +2 -6
  7. data/Gemfile.lock +8 -8
  8. data/README.md +57 -15
  9. data/docs/commands.md +29 -23
  10. data/docs/dns.md +9 -0
  11. data/docs/migrating.md +3 -3
  12. data/examples/controlplane.yml +67 -4
  13. data/lib/command/apply_template.rb +2 -1
  14. data/lib/command/base.rb +62 -0
  15. data/lib/command/build_image.rb +5 -1
  16. data/lib/command/config.rb +0 -5
  17. data/lib/command/copy_image_from_upstream.rb +5 -4
  18. data/lib/command/delete.rb +40 -11
  19. data/lib/command/env.rb +1 -0
  20. data/lib/command/generate.rb +45 -0
  21. data/lib/command/info.rb +15 -33
  22. data/lib/command/latest_image.rb +1 -0
  23. data/lib/command/maintenance.rb +9 -4
  24. data/lib/command/maintenance_off.rb +8 -4
  25. data/lib/command/maintenance_on.rb +8 -4
  26. data/lib/command/no_command.rb +1 -0
  27. data/lib/command/ps.rb +5 -1
  28. data/lib/command/run.rb +20 -23
  29. data/lib/command/run_detached.rb +38 -30
  30. data/lib/command/setup_app.rb +3 -3
  31. data/lib/command/version.rb +1 -0
  32. data/lib/core/config.rb +194 -66
  33. data/lib/core/controlplane.rb +28 -7
  34. data/lib/core/controlplane_api.rb +13 -1
  35. data/lib/core/controlplane_api_direct.rb +18 -2
  36. data/lib/core/helpers.rb +16 -0
  37. data/lib/core/shell.rb +25 -3
  38. data/lib/cpl/version.rb +1 -1
  39. data/lib/cpl.rb +32 -3
  40. data/lib/generator_templates/Dockerfile +27 -0
  41. data/lib/generator_templates/controlplane.yml +57 -0
  42. data/lib/generator_templates/entrypoint.sh +8 -0
  43. data/lib/generator_templates/templates/gvc.yml +21 -0
  44. data/lib/generator_templates/templates/postgres.yml +176 -0
  45. data/lib/generator_templates/templates/rails.yml +36 -0
  46. data/script/check_cpln_links +45 -0
  47. metadata +14 -3
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cpl
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.2
4
+ version: 1.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Justin Gordon
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2023-10-25 00:00:00.000000000 Z
12
+ date: 2024-03-19 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: debug
@@ -202,6 +202,7 @@ executables:
202
202
  extensions: []
203
203
  extra_rdoc_files: []
204
204
  files:
205
+ - ".github/workflows/check_cpln_links.yml"
205
206
  - ".github/workflows/command_docs.yml"
206
207
  - ".github/workflows/rspec.yml"
207
208
  - ".github/workflows/rubocop.yml"
@@ -223,6 +224,7 @@ files:
223
224
  - docs/assets/memcached.png
224
225
  - docs/assets/sidekiq-pre-stop-hook.png
225
226
  - docs/commands.md
227
+ - docs/dns.md
226
228
  - docs/migrating.md
227
229
  - docs/postgres.md
228
230
  - docs/redis.md
@@ -242,6 +244,7 @@ files:
242
244
  - lib/command/deploy_image.rb
243
245
  - lib/command/env.rb
244
246
  - lib/command/exists.rb
247
+ - lib/command/generate.rb
245
248
  - lib/command/info.rb
246
249
  - lib/command/latest_image.rb
247
250
  - lib/command/logs.rb
@@ -269,14 +272,22 @@ files:
269
272
  - lib/core/controlplane_api.rb
270
273
  - lib/core/controlplane_api_cli.rb
271
274
  - lib/core/controlplane_api_direct.rb
275
+ - lib/core/helpers.rb
272
276
  - lib/core/scripts.rb
273
277
  - lib/core/shell.rb
274
278
  - lib/cpl.rb
275
279
  - lib/cpl/version.rb
276
280
  - lib/deprecated_commands.json
281
+ - lib/generator_templates/Dockerfile
282
+ - lib/generator_templates/controlplane.yml
283
+ - lib/generator_templates/entrypoint.sh
284
+ - lib/generator_templates/templates/gvc.yml
285
+ - lib/generator_templates/templates/postgres.yml
286
+ - lib/generator_templates/templates/rails.yml
277
287
  - rakelib/create_release.rake
278
288
  - script/add_command
279
289
  - script/check_command_docs
290
+ - script/check_cpln_links
280
291
  - script/rename_command
281
292
  - script/update_command_docs
282
293
  - templates/daily-task.yml
@@ -308,7 +319,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
308
319
  - !ruby/object:Gem::Version
309
320
  version: '0'
310
321
  requirements: []
311
- rubygems_version: 3.4.12
322
+ rubygems_version: 3.4.21
312
323
  signing_key:
313
324
  specification_version: 4
314
325
  summary: Heroku to Control Plane