   ###
   @clean: (dir, done) ->
     args = Args([
-      {dir : Args.STRING   | Args.Optional, _default: "#{process.cwd()}/#{DEFAULT.NAME}"}
+      {dir : Args.STRING   | Args.Optional, _default: "#{process.cwd()}/#{OPTIONS.NAME}"}
       {done: Args.FUNCTION | Args.Optional, _default: undefined}
     ], arguments)
 

# -- DEPENDENCIES --------------------------------------------------------------

Args      = require 'args-js'
fs        = require 'fs-extra'
wrench    = require 'wrench'
path      = require 'path'
chalk     = require 'chalk'
sh        = require 'execSync'
_         = require 'lodash'
Sails     = require 'sails/lib/app'
sailsBin  = path.join __dirname, '../node_modules/sails/bin/sails.js'
sailsLift = require 'sails/bin/sails-lift'
_ioClient = require('./sails.io')(require('socket.io-client'))

# -- GLOBALS ------------------------------------------------------------------




  @_resolvePath: (name) ->
    # first try to resolve the dependency locally
    return "#{localDependecies}/#{name}" if fs.existsSync("#{localDependecies}/#{name}")

    # second, try to resolve in global mode
    result = @execute "which #{name}"
    return null if result.code isnt 0

    result = @execute "which #{name}"

    if result.stdout[result.stdout.length-1] is '\n'
      result.stdout = result.stdout.substring(0, result.stdout.length - 1)

    fileType = fs.lstatSync(result.stdout)
    path.join fs.realpathSync(result.stdout), '../..' if fileType.isSymbolicLink()


  ###
