Skip to content

Commit

Permalink
update firehose for consistency
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Laing committed Jun 29, 2012
1 parent 75f49fc commit 5b36a08
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 5 deletions.
14 changes: 11 additions & 3 deletions test2/firehose.js

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

13 changes: 11 additions & 2 deletions test2src/firehose.coffee
Expand Up @@ -8,7 +8,7 @@ argv = require('optimist')
.demand('port').describe('port', 'Port').default('port', 5672)
.demand('vhost').describe('vhost', 'Virtual Host').default('vhost', '/')
.demand('login').describe('login', 'Login').default('login', 'guest')
.demand('password').describe('password', 'Password').default('password', 'starbuck')
.demand('password').describe('password', 'Password')
.argv

amqp = require '../amqp'
Expand Down Expand Up @@ -61,7 +61,16 @@ exec "rabbitmqctl trace_on -p #{argv.vhost}", (error, stdout, stderr) ->
console.log error
process.exit 1

amqp_connection = amqp.createConnection()
{host, port, vhost, login, password} = argv

options =
host:host
port:port
vhost:vhost
login:login
password:password

amqp_connection = amqp.createConnection options

amqp_connection.on 'ready', () ->
default_exchange = amqp_connection.exchange()
Expand Down

0 comments on commit 5b36a08

Please sign in to comment.