Skip to content

Commit

Permalink
Enqueue recipes.
Browse files Browse the repository at this point in the history
  • Loading branch information
makasim committed May 11, 2017
1 parent b165dcd commit ae9a9f6
Show file tree
Hide file tree
Showing 9 changed files with 70 additions and 0 deletions.
23 changes: 23 additions & 0 deletions enqueue/amqp-ext/0.3/etc/packages/enqueue_amqp.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
enqueue:
transport:
default: 'amqp'
amqp:
host: '%env(ENQUEUE_AMQP_HOST)%'
port: '%env(ENQUEUE_AMQP_PORT)%'
login: '%env(ENQUEUE_AMQP_LOGIN)%'
password: '%env(ENQUEUE_AMQP_PASSWORD)%'
vhost: '%env(ENQUEUE_AMQP_VHOST)%'

# If you use RabbitMQ broker you can replace amqp transport with this one. It enables specific features like priorities, delays.
# default: 'rabbitmq_amqp'
# rabbitmq_amqp:
#
# host: '%env(ENQUEUE_AMQP_HOST)%'
# port: '%env(ENQUEUE_AMQP_PORT)%'
# login: '%env(ENQUEUE_AMQP_LOGIN)%'
# password: '%env(ENQUEUE_AMQP_PASSWORD)%'
# vhost: '%env(ENQUEUE_AMQP_VHOST)%'
#
# # The option tells whether RabbitMQ broker has delay plugin installed or not
# delay_plugin_installed: false

12 changes: 12 additions & 0 deletions enqueue/amqp-ext/0.3/manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"copy-from-recipe": {
"etc/": "%ETC_DIR%/"
},
"env": {
"ENQUEUE_AMQP_HOST": "localhost",
"ENQUEUE_AMQP_PORT": "5672",
"ENQUEUE_AMQP_LOGIN": "guest",
"ENQUEUE_AMQP_PASSWORD": "guest",
"ENQUEUE_AMQP_VHOST": "/"
}
}
3 changes: 3 additions & 0 deletions enqueue/enqueue-bundle/0.3/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
consume:
@test -f bin/console && bin/console enqueue:consume --setup-broker || echo "cannot consume messages (needs symfony/console)"
.PHONY: consume
6 changes: 6 additions & 0 deletions enqueue/enqueue-bundle/0.3/etc/packages/test/enqueue.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
enqueue:
transport:
default: 'null'
'null': ~
client:
traceable_producer: true
8 changes: 8 additions & 0 deletions enqueue/enqueue-bundle/0.3/manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"bundles": {
"Enqueue\\Bundle\\EnqueueBundle": ["all"]
},
"copy-from-recipe": {
"etc/": "%ETC_DIR%/"
}
}
1 change: 1 addition & 0 deletions enqueue/enqueue-bundle/0.3/post_install.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[Enqueue] Run <comment>make consume</> command to consume messages
5 changes: 5 additions & 0 deletions enqueue/fs/0.3/etc/packages/enqueue_fs.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
enqueue:
transport:
default: 'fs'
fs:
store_dir: '%env(ENQUEUE_FS_STORAGE)%'
12 changes: 12 additions & 0 deletions enqueue/fs/0.3/manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"copy-from-recipe": {
"etc/": "%ETC_DIR%/",
"var/": "%VAR_DIR%"
},
"env": {
"ENQUEUE_FS_STORAGE": "%VAR%/queue"
},
"gitignore": [
"/var/queue"
]
}
Empty file.

0 comments on commit ae9a9f6

Please sign in to comment.