Does this look correct? (next is from async.each)
stairs = new Stairs()
stairs
.step("#{env}: #{options._name}", actions[options._name])
.step("#{env}: bump", !options.bump, utils.bump)
.step("#{env}: write", options.dryRun, utils.write)
.run.apply(stairs, [options].concat(args).concat(env))
.on('error', -> console.log '1 error'; next())
.on('done', -> console.log '1 done'; next())
Neither of the on handlers are logging anything, and the tests fail, so presumably, the events are not firing correctly . . . or I'm setting this up wrong.
Also tried it with
stairs = new Stairs()
stairs
.step("#{env}: #{options._name}", actions[options._name])
.step("#{env}: bump", !options.bump, utils.bump)
.step("#{env}: write", options.dryRun, utils.write)
.run.apply(stairs, [options].concat(args).concat(env))
stairs.on('error', -> console.log '1 error'; next())
stairs.on('done', -> console.log '1 done'; next())
Does this look correct? (
nextis from async.each)Neither of the
onhandlers are logging anything, and the tests fail, so presumably, the events are not firing correctly . . . or I'm setting this up wrong.Also tried it with