# File lib/reap/task/publish.rb, line 26
  def run
    cmd = ''; skip = false

    case @host
    when 'rubyforge', 'rubyforge.org'
      case @type
      when 'www', 'web'
        cmd = %{scp -r #{@dir}/* #{@username}@rubyforge.org:/var/www/gforge-projects/#{@project}/}
      else
        puts %{Unrecognized publishing kind '#{@type}' for host '#{@host}'. Skipped.}
        skip = true
      end
    else
      puts %{Unrecognized publishing host '#{@host}'. Skipped.}
      skip = true
    end

    unless skip
      puts "Reap is shelling out publishing work..."
      sh(cmd) unless $PRETEND
    end
  end