You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ac...@apache.org on 2024/03/04 16:47:42 UTC

(camel-kamelets-examples) branch main updated: Use *.camel.yaml filename pattern for first examples (#66)

This is an automated email from the ASF dual-hosted git repository.

acosentino pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel-kamelets-examples.git


The following commit(s) were added to refs/heads/main by this push:
     new 34bc69a  Use *.camel.yaml filename pattern for first examples (#66)
34bc69a is described below

commit 34bc69adcd9901e5438502bdbe1b67b7a55411f1
Author: Aurélien Pupier <ap...@redhat.com>
AuthorDate: Mon Mar 4 17:47:36 2024 +0100

    Use *.camel.yaml filename pattern for first examples (#66)
    
    it allows tooling to detect that they are Camel files and provide more
    help (open correct editor, associate yaml schema and more)
    
    Signed-off-by: Aurélien Pupier <ap...@redhat.com>
---
 jbang/artemis/{consumer.yaml => consumer.camel.yaml}           |  0
 jbang/artemis/{producer.yaml => producer.camel.yaml}           |  0
 jbang/aws-database-admin-secrets-refresh/README.adoc           |  4 ++--
 .../{sql-query.yaml => sql-query.camel.yaml}                   |  0
 jbang/aws-s3-cdc/README.adoc                                   |  4 ++--
 .../{aws-s3-cdc-log.yaml => aws-s3-cdc-log.camel.yaml}         |  0
 jbang/aws-s3-large-object/README.adoc                          | 10 +++++-----
 .../{downloadFromS3.yaml => downloadFromS3.camel.yaml}         |  0
 .../{uploadToS3.yaml => uploadToS3.camel.yaml}                 |  0
 9 files changed, 9 insertions(+), 9 deletions(-)

diff --git a/jbang/artemis/consumer.yaml b/jbang/artemis/consumer.camel.yaml
similarity index 100%
rename from jbang/artemis/consumer.yaml
rename to jbang/artemis/consumer.camel.yaml
diff --git a/jbang/artemis/producer.yaml b/jbang/artemis/producer.camel.yaml
similarity index 100%
rename from jbang/artemis/producer.yaml
rename to jbang/artemis/producer.camel.yaml
diff --git a/jbang/aws-database-admin-secrets-refresh/README.adoc b/jbang/aws-database-admin-secrets-refresh/README.adoc
index af70931..383195c 100644
--- a/jbang/aws-database-admin-secrets-refresh/README.adoc
+++ b/jbang/aws-database-admin-secrets-refresh/README.adoc
@@ -71,7 +71,7 @@ Then you can run this example using:
 
 [source,sh]
 ----
-$ camel run sql-query.yaml
+$ camel run sql-query.camel.yaml
 ----
 
 Or run it even shorter:
@@ -194,7 +194,7 @@ You can enable the developer console via `--console` flag as show:
 
 [source,sh]
 ----
-$ camel run sql-query.yaml --console
+$ camel run sql-query.camel.yaml --console
 ----
 
 Then you can browse: http://localhost:8080/q/dev to introspect the running Camel applicaton.
diff --git a/jbang/aws-database-admin-secrets-refresh/sql-query.yaml b/jbang/aws-database-admin-secrets-refresh/sql-query.camel.yaml
similarity index 100%
rename from jbang/aws-database-admin-secrets-refresh/sql-query.yaml
rename to jbang/aws-database-admin-secrets-refresh/sql-query.camel.yaml
diff --git a/jbang/aws-s3-cdc/README.adoc b/jbang/aws-s3-cdc/README.adoc
index 3a1eac5..e1f5701 100644
--- a/jbang/aws-s3-cdc/README.adoc
+++ b/jbang/aws-s3-cdc/README.adoc
@@ -107,7 +107,7 @@ Then you can run this example using:
 
 [source,sh]
 ----
-$ camel run aws-s3-cdc-log.yaml
+$ camel run aws-s3-cdc-log.camel.yaml
 ----
 
 Or run it even shorter:
@@ -123,7 +123,7 @@ You can enable the developer console via `--console` flag as show:
 
 [source,sh]
 ----
-$ camel run aws-s3-cdc-log.yaml --console
+$ camel run aws-s3-cdc-log.camel.yaml --console
 ----
 
 Then you can browse: http://localhost:8080/q/dev to introspect the running Camel applicaton.
diff --git a/jbang/aws-s3-cdc/aws-s3-cdc-log.yaml b/jbang/aws-s3-cdc/aws-s3-cdc-log.camel.yaml
similarity index 100%
rename from jbang/aws-s3-cdc/aws-s3-cdc-log.yaml
rename to jbang/aws-s3-cdc/aws-s3-cdc-log.camel.yaml
diff --git a/jbang/aws-s3-large-object/README.adoc b/jbang/aws-s3-large-object/README.adoc
index 8bc00ba..49b48a9 100644
--- a/jbang/aws-s3-large-object/README.adoc
+++ b/jbang/aws-s3-large-object/README.adoc
@@ -72,7 +72,7 @@ Uploading object with this command:
 
 [source,sh]
 ----
-$ camel run --property="camel.main.streamCachingEnabled=false" uploadToS3.yaml
+$ camel run --property="camel.main.streamCachingEnabled=false" uploadToS3.camel.yaml
 ----
 
 Sample output
@@ -90,7 +90,7 @@ Sample output
 2023-08-18 19:36:54.387  INFO 19778 --- [           main] el.impl.engine.AbstractCamelContext : Routes startup (started:1)
 2023-08-18 19:36:54.387  INFO 19778 --- [           main] el.impl.engine.AbstractCamelContext :     Started route1 (file://./outbox)
 2023-08-18 19:36:54.387  INFO 19778 --- [           main] el.impl.engine.AbstractCamelContext : Apache Camel 4.0.0 (uploadToS3) started in 1s36ms (build:0ms init:0ms start:1s36ms)
-2023-08-18 19:36:59.661  INFO 19778 --- [file://./outbox] uploadToS3.yaml:20                  : Done
+2023-08-18 19:36:59.661  INFO 19778 --- [file://./outbox] uploadToS3.camel.yaml:20                  : Done
 
 ----
 
@@ -98,14 +98,14 @@ Then, download file with this command:
 
 [source,sh]
 ----
-$ camel run --property="camel.main.streamCachingEnabled=false" downloadFromS3.yaml
+$ camel run --property="camel.main.streamCachingEnabled=false" downloadFromS3.camel.yaml
 ----
 
 Sample output
 
 [source,sh]
 ----
-$ camel run --property="camel.main.streamCachingEnabled=false" downloadFromS3.yaml
+$ camel run --property="camel.main.streamCachingEnabled=false" downloadFromS3.camel.yaml
 2023-08-18 19:25:54.302  INFO 19224 --- [           main] org.apache.camel.main.MainSupport   : Apache Camel (JBang) 4.0.0 is starting
 2023-08-18 19:25:54.494  INFO 19224 --- [           main] org.apache.camel.main.MainSupport   : Using Java 17.0.8 with PID 19224. Started by ezhang in /home/ezhang/app/camel-kamelets-examples/jbang/aws-s3-large-object
 2023-08-18 19:25:55.075  INFO 19224 --- [           main] g.apache.camel.main.BaseMainSupport : Auto-configuration summary
@@ -115,7 +115,7 @@ $ camel run --property="camel.main.streamCachingEnabled=false" downloadFromS3.ya
 2023-08-18 19:25:57.244  INFO 19224 --- [           main] el.impl.engine.AbstractCamelContext : Routes startup (started:1)
 2023-08-18 19:25:57.245  INFO 19224 --- [           main] el.impl.engine.AbstractCamelContext :     Started route1 (aws2-s3://claim-check-74469c67-1da4-404e-bcb1-2a3015c33c3a)
 2023-08-18 19:25:57.245  INFO 19224 --- [           main] el.impl.engine.AbstractCamelContext : Apache Camel 4.0.0 (downloadFromS3) started in 1s166ms (build:0ms init:0ms start:1s166ms)
-2023-08-18 19:26:01.982  INFO 19224 --- [b1-2a3015c33c3a] downloadFromS3.yaml:20              : Done
+2023-08-18 19:26:01.982  INFO 19224 --- [b1-2a3015c33c3a] downloadFromS3.camel.yaml:20              : Done
 ----
 
 === Check with Noobaa (aka MCG) web console
diff --git a/jbang/aws-s3-large-object/downloadFromS3.yaml b/jbang/aws-s3-large-object/downloadFromS3.camel.yaml
similarity index 100%
rename from jbang/aws-s3-large-object/downloadFromS3.yaml
rename to jbang/aws-s3-large-object/downloadFromS3.camel.yaml
diff --git a/jbang/aws-s3-large-object/uploadToS3.yaml b/jbang/aws-s3-large-object/uploadToS3.camel.yaml
similarity index 100%
rename from jbang/aws-s3-large-object/uploadToS3.yaml
rename to jbang/aws-s3-large-object/uploadToS3.camel.yaml