Use config to retrieve contents directory

This commit is contained in:
Kevin Sawicki
2013-06-27 09:18:22 -07:00
parent 52aee1d050
commit 3e8de2d22d

View File

@@ -9,6 +9,6 @@ module.exports = (grunt) ->
commands.push (callback) ->
spawn cmd: 'pkill', args: ['Atom'], -> callback()
commands.push (callback) ->
atomBinary = path.join(CONTENTS_DIR, 'MacOS', 'Atom')
atomBinary = path.join(grunt.config.get('atom.contentsDir'), 'MacOS', 'Atom')
spawn cmd: atomBinary, args: ['--test', "--resource-path=#{__dirname}"], (error) -> callback(error)
grunt.util.async.waterfall commands, (error) -> done(error)