Skip to content

Commit

Permalink
Revert "revert plugin framework code (GoogleCloudPlatform#7287)"
Browse files Browse the repository at this point in the history
This reverts commit 06f9b2e.
  • Loading branch information
megan07 committed Feb 15, 2023
1 parent e68b6d5 commit a022fc2
Show file tree
Hide file tree
Showing 28 changed files with 2,961 additions and 452 deletions.
12 changes: 12 additions & 0 deletions mmv1/provider/terraform/common~compile.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,18 @@
-%>
'<%= dir -%>/<%= fname.delete_suffix(".erb") -%>': 'third_party/terraform/utils/<%= fname -%>'
<% end -%>
<%
Dir["third_party/terraform/framework_utils/*.go.erb"].each do |file_path|
fname = file_path.split('/')[-1]
-%>
'<%= dir -%>/<%= fname.delete_suffix(".erb") -%>': 'third_party/terraform/framework_utils/<%= fname -%>'
<% end -%>
<%
Dir["third_party/terraform/framework_models/*.go.erb"].each do |file_path|
fname = file_path.split('/')[-1]
-%>
'<%= dir -%>/<%= fname.delete_suffix(".erb") -%>': 'third_party/terraform/framework_models/<%= fname -%>'
<% end -%>
<%
Dir["third_party/terraform/scripts/**/*.erb"].each do |file_path|
fname = file_path.delete_prefix("third_party/terraform/")
Expand Down
6 changes: 6 additions & 0 deletions mmv1/provider/terraform/common~copy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,12 @@
-%>
'<%= fname -%>': '<%= file_path -%>'
<% end -%>
<%
Dir["third_party/terraform/framework_utils/*.go"].each do |file_path|
fname = file_path.split('/')[-1]
-%>
'<%= dir -%>/<%= fname -%>': 'third_party/terraform/framework_utils/<%= fname -%>'
<% end -%>
'<%= dir -%>/test-fixtures/': 'third_party/terraform/utils/test-fixtures'
<% end -%>
<% if generate_docs -%>
Expand Down
Loading

0 comments on commit a022fc2

Please sign in to comment.