 
   remove_source_files = ->
     deferred = W.defer()
-    console.log 'removing source files'.grey
+    @debug.log 'removing source files'
 
     opts = { root: '', directoryFilter: ["!#{@public}", '!.git'] };
 

    fn.call()

  push_code = ->
    console.log 'pushing to origin/gh-pages'.grey
    execute "git push origin gh-pages --force"

    console.log "switching back to #{@original_branch} branch".grey
    execute "git checkout #{@original_branch}"
 
    console.log 'deployed to github pages'.grey
    fn.call()

  # 

    @original_branch = execute('git rev-parse --abbrev-ref HEAD') 
    if not @original_branch then return deferred.reject(@errors.make_commit)

    @debug.log "starting on branch #{original_branch}"
    deferred.resolve()

  move_to_gh_pages_branch = ->
    @debug.log 'switching to gh-pages branch'

    if not execute('git branch | grep gh-pages')
      execute('git branch -D gh-pages')
