Skip to content

Commit

Permalink
PORT-4328 Fix ocean new command (#26)
Browse files Browse the repository at this point in the history
* Fixed the `ocean new` command
  • Loading branch information
yairsimantov20 authored Jul 24, 2023
1 parent 2d6960d commit f992cdb
Show file tree
Hide file tree
Showing 4 changed files with 40 additions and 23 deletions.
1 change: 1 addition & 0 deletions changelog/PORT-4328.bugfix.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fixed `ocean new` jinja crash for the config.yaml in the scaffold
45 changes: 30 additions & 15 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
# This is an example configuration file for the integration service.
# Please copy this file to config.yaml file in the integration folder and edit it to your needs.
{{ "# This is an example configuration file for the integration service." }}
{{ "# Please copy this file to config.yaml file in the integration folder and edit it to your needs." }}

port:
clientId: {{ "{{" }} from env PORT_CLIENT_ID {{ "}}" }} # Can be loaded via environment variable: PORT_CLIENT_ID
clientSecret: {{ "{{" }} from env PORT_CLIENT_SECRET {{ "}}" }} # Can be loaded via environment variable: PORT_CLIENT_SECRET
# The event listener to use for the integration service.
clientId: {{ "{{" }} from env PORT_CLIENT_ID {{ "}}" }} {{ "# Can be loaded via environment variable: PORT_CLIENT_ID" }}
clientSecret: {{ "{{" }} from env PORT_CLIENT_SECRET {{ "}}" }} {{ "# Can be loaded via environment variable: PORT_CLIENT_SECRET" }}
{{ "# The event listener to use for the integration service." }}
eventListener:
type: KAFKA
integration:
# The identifier of this integration instance.
{{ "# The identifier of this integration instance." }}
identifier: {{ "{{" }} from env INTEGRATION_IDENTIFIER {{ "}}" }}
# The type of the integration.
{{ "# The type of the integration." }}
type: "My Integration type (Gitlab, Jira, etc.)"
config:
myGitToken: {{ "{{" }} from env MY_GIT_TOKEN {{ "}}" }}
Expand Down
3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,10 @@ six = "^1.16.0"
click = { version = "^8.1.3", optional = true }
rich = { version = "^13.4.1", optional = true }
cookiecutter = { version = "^2.1.1", optional = true }
jinja2-time = {version = "^0.2.0", optional = true}

[tool.poetry.extras]
cli = ["click", "rich", "cookiecutter"]
cli = ["click", "rich", "cookiecutter", "jinja2-time"]


[tool.poetry.group.dev.dependencies]
Expand Down

0 comments on commit f992cdb

Please sign in to comment.