Skip to content

Commit

Permalink
Cleaner code
Browse files Browse the repository at this point in the history
  • Loading branch information
knoopx committed Nov 25, 2014
1 parent 8f63a1f commit 3a582ad
Showing 1 changed file with 4 additions and 14 deletions.
18 changes: 4 additions & 14 deletions hawkins-worker.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -3,22 +3,14 @@ Stream = require('stream')
child_process = require("child_process")
optimist = require('optimist')
fs = require('fs')
extend = require('util')._extend

process.title = 'Hawkins Worker'

{argv} = optimist.usage('Usage: hawkins-worker --firebase URL')
.options('firebase', {
alias: 'f',
describe: "Firebase URL",
})
.options('help', {
alias: "h",
describe: "Show this message"
})
.options('version', {
alias: 'v',
describe: "Show version"
})
.options('firebase', {describe: "Firebase URL"})
.options('help', {alias: "h", describe: "Show this message"})
.options('version', {alias: 'v', describe: "Show version"})

if argv.help
optimist.showHelp()
Expand Down Expand Up @@ -82,8 +74,6 @@ new Worker Pushes, (push, processNext) ->
process.stdout.write(data)
log.ref().push(data.toString())

extend = require('util')._extend

env = extend({}, process.env)
extend(env,
HAWKINS_BUILD: buildKey
Expand Down

0 comments on commit 3a582ad

Please sign in to comment.