cpflow 4.0.1 → 4.1.1

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 (55) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +4 -0
  3. data/CHANGELOG.md +15 -2
  4. data/COMM-LICENSE.txt +9 -0
  5. data/Gemfile.lock +1 -1
  6. data/LICENSE +6 -19
  7. data/README.md +23 -20
  8. data/docs/commands.md +19 -3
  9. data/docs/postgres.md +2 -2
  10. data/docs/terraform/details.md +415 -0
  11. data/docs/terraform/example/.controlplane/controlplane.yml +29 -0
  12. data/docs/terraform/example/.controlplane/templates/app.yml +38 -0
  13. data/docs/terraform/example/.controlplane/templates/postgres.yml +30 -0
  14. data/docs/terraform/example/.controlplane/templates/rails.yml +26 -0
  15. data/docs/terraform/overview.md +105 -0
  16. data/lib/command/base.rb +40 -5
  17. data/lib/command/base_sub_command.rb +15 -0
  18. data/lib/command/build_image.rb +6 -2
  19. data/lib/command/delete.rb +3 -3
  20. data/lib/command/deploy_image.rb +2 -0
  21. data/lib/command/generate.rb +1 -1
  22. data/lib/command/ps.rb +1 -1
  23. data/lib/command/ps_stop.rb +2 -1
  24. data/lib/command/run.rb +1 -1
  25. data/lib/command/setup_app.rb +2 -2
  26. data/lib/command/terraform/base.rb +35 -0
  27. data/lib/command/terraform/generate.rb +99 -0
  28. data/lib/command/terraform/import.rb +79 -0
  29. data/lib/core/controlplane.rb +5 -5
  30. data/lib/core/shell.rb +9 -4
  31. data/lib/core/terraform_config/agent.rb +31 -0
  32. data/lib/core/terraform_config/audit_context.rb +31 -0
  33. data/lib/core/terraform_config/base.rb +25 -0
  34. data/lib/core/terraform_config/dsl.rb +102 -0
  35. data/lib/core/terraform_config/generator.rb +184 -0
  36. data/lib/core/terraform_config/gvc.rb +63 -0
  37. data/lib/core/terraform_config/identity.rb +35 -0
  38. data/lib/core/terraform_config/local_variable.rb +30 -0
  39. data/lib/core/terraform_config/policy.rb +151 -0
  40. data/lib/core/terraform_config/provider.rb +22 -0
  41. data/lib/core/terraform_config/required_provider.rb +23 -0
  42. data/lib/core/terraform_config/secret.rb +138 -0
  43. data/lib/core/terraform_config/volume_set.rb +155 -0
  44. data/lib/core/terraform_config/workload/main.tf +316 -0
  45. data/lib/core/terraform_config/workload/required_providers.tf +8 -0
  46. data/lib/core/terraform_config/workload/variables.tf +263 -0
  47. data/lib/core/terraform_config/workload.rb +132 -0
  48. data/lib/cpflow/version.rb +1 -1
  49. data/lib/cpflow.rb +50 -9
  50. data/lib/generator_templates/templates/postgres.yml +1 -1
  51. data/lib/patches/array.rb +8 -0
  52. data/lib/patches/hash.rb +47 -0
  53. data/lib/patches/string.rb +34 -0
  54. data/script/update_command_docs +7 -3
  55. metadata +34 -3
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cpflow
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.0.1
4
+ version: 4.1.1
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: 2024-08-27 00:00:00.000000000 Z
12
+ date: 2025-03-14 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: dotenv
@@ -87,6 +87,7 @@ files:
87
87
  - ".rubocop.yml"
88
88
  - ".simplecov_spawn.rb"
89
89
  - CHANGELOG.md
90
+ - COMM-LICENSE.txt
90
91
  - CONTRIBUTING.md
91
92
  - Gemfile
92
93
  - Gemfile.lock
@@ -105,12 +106,19 @@ files:
105
106
  - docs/postgres.md
106
107
  - docs/redis.md
107
108
  - docs/secrets-and-env-values.md
109
+ - docs/terraform/details.md
110
+ - docs/terraform/example/.controlplane/controlplane.yml
111
+ - docs/terraform/example/.controlplane/templates/app.yml
112
+ - docs/terraform/example/.controlplane/templates/postgres.yml
113
+ - docs/terraform/example/.controlplane/templates/rails.yml
114
+ - docs/terraform/overview.md
108
115
  - docs/tips.md
109
116
  - docs/troubleshooting.md
110
117
  - examples/circleci.yml
111
118
  - examples/controlplane.yml
112
119
  - lib/command/apply_template.rb
113
120
  - lib/command/base.rb
121
+ - lib/command/base_sub_command.rb
114
122
  - lib/command/build_image.rb
115
123
  - lib/command/cleanup_images.rb
116
124
  - lib/command/cleanup_stale_apps.rb
@@ -140,6 +148,9 @@ files:
140
148
  - lib/command/ps_wait.rb
141
149
  - lib/command/run.rb
142
150
  - lib/command/setup_app.rb
151
+ - lib/command/terraform/base.rb
152
+ - lib/command/terraform/generate.rb
153
+ - lib/command/terraform/import.rb
143
154
  - lib/command/test.rb
144
155
  - lib/command/version.rb
145
156
  - lib/constants/exit_code.rb
@@ -152,6 +163,23 @@ files:
152
163
  - lib/core/maintenance_mode.rb
153
164
  - lib/core/shell.rb
154
165
  - lib/core/template_parser.rb
166
+ - lib/core/terraform_config/agent.rb
167
+ - lib/core/terraform_config/audit_context.rb
168
+ - lib/core/terraform_config/base.rb
169
+ - lib/core/terraform_config/dsl.rb
170
+ - lib/core/terraform_config/generator.rb
171
+ - lib/core/terraform_config/gvc.rb
172
+ - lib/core/terraform_config/identity.rb
173
+ - lib/core/terraform_config/local_variable.rb
174
+ - lib/core/terraform_config/policy.rb
175
+ - lib/core/terraform_config/provider.rb
176
+ - lib/core/terraform_config/required_provider.rb
177
+ - lib/core/terraform_config/secret.rb
178
+ - lib/core/terraform_config/volume_set.rb
179
+ - lib/core/terraform_config/workload.rb
180
+ - lib/core/terraform_config/workload/main.tf
181
+ - lib/core/terraform_config/workload/required_providers.tf
182
+ - lib/core/terraform_config/workload/variables.tf
155
183
  - lib/cpflow.rb
156
184
  - lib/cpflow/version.rb
157
185
  - lib/deprecated_commands.json
@@ -161,6 +189,9 @@ files:
161
189
  - lib/generator_templates/templates/app.yml
162
190
  - lib/generator_templates/templates/postgres.yml
163
191
  - lib/generator_templates/templates/rails.yml
192
+ - lib/patches/array.rb
193
+ - lib/patches/hash.rb
194
+ - lib/patches/string.rb
164
195
  - lib/patches/thor.rb
165
196
  - rakelib/create_release.rake
166
197
  - script/add_command
@@ -197,7 +228,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
197
228
  - !ruby/object:Gem::Version
198
229
  version: '0'
199
230
  requirements: []
200
- rubygems_version: 3.5.13
231
+ rubygems_version: 3.5.11
201
232
  signing_key:
202
233
  specification_version: 4
203
234
  summary: Control Plane Flow