                                    dismissable: true
   doRsync: (cmd) ->
     cmdStr = 'rsync -a ' + cmd
-    console.log cmdStr
+    # console.log cmdStr
     try
       return execSync cmdStr, timeout:5e3, encoding:'utf8', maxBuffer:10e6
     catch e

                   then " --exclude=.git --filter=':- .gitignore' " else ' ')
      @doRsync gitIgnStr + "#{@rootDirPath}/ #{remotePath}/"
      
    scripts = (if action is 'save' then @setup.options.scriptsRunOnSave \
                                   else @setup.options.scriptsRunOnCommand)
    if scripts.length > 0
      for script in scripts
        remoteScript = "#{remotePath}/#{script}"
        @doRsync "#{@serverScriptFolder}/#{script} #{remoteScript}"
        @doSSH "chmod +x #{root}/#{script}"
        @doSSH "#{root}/#{script}"

  deactivate: ->
    @subs.dispose()


                                   dismissable: true
  doSSH: (cmd) ->
    cmdStr = 'ssh ' + @server + ' ' + cmd
    # console.log cmdStr
    try
      return execSync cmdStr, timeout:5e3, encoding:'utf8', maxBuffer:10e6
    catch e
