     @messageSchema = MESSAGE_SCHEMA
     @optionsSchema = OPTIONS_SCHEMA
     @commands = {start: @startCommand, stop: @stopCommand}
-    @dir = path.join __dirname, 'tmp'
+    @tmpDir = path.join __dirname, 'tmp'
 
   onMessage: (message) =>
     payload = message.payload;
     command = @commands[payload.command]
     return unless command?
     command (error, stdout) =>
-      if error?
+      if  error?
         @emit 'error', error
         @emit 'message', error: error
         return

  onConfig: (device) =>
    @setOptions device.options

  setOptions: (@options={}) =>
  setUuid: (@uuid={}) =>

  startCommand: (callback=->) =>

OPTIONS_SCHEMA =
  type: 'object'
  properties:
    gitRepo:
      type: 'string'
      required: true
      default: 'https://github.com/org/project'
    setup:
      type: 'string'
      required: true
