module GrowlTransfer
  class GTScp
    def initialize(output)
      @output = output
    end
    
    def download(remote, local_path)
      @output.puts "Downloading #{remote}"            
      params = remote.split(":")
      file = params.last.split("/").last
      Net::SCP.start(params[0], ENV['USER']) do |scp|
        scp.download!(params[1], local_path, {:recursive => true, :verbose => true}) do |ch, name, sent, total|
          # => progress?
        end
      end
      @output.puts "Finished!"
      g = Growl.new "localhost", "GrowlTransfer",
                    ["GrowlTransfer Notification"]
      g.notify "GrowlTransfer Notification", "#{file}",
               "Download complete"
    end
    
  end
end
module GrowlTransfer
  class GTScp
    def initialize(output)
      @output = output
    end
    
    def download(remote, local_path)
      @output.puts "Downloading #{remote}"            
      params = remote.split(":")
      file = params.last.split("/").last
      Net::SCP.start(params[0], "clint") do |scp|
        scp.download!(params[1], local_path, {:recursive => true, :verbose => true}) do |ch, name, sent, total|
          # => progress?
        end
      end
      @output.puts "Finished!"
      g = Growl.new "localhost", "GrowlTransfer",
                    ["GrowlTransfer Notification"]
      g.notify "GrowlTransfer Notification", "#{file}",
               "Download complete"
    end
    
  end
end
--- 
+++ 
@@ -8,7 +8,7 @@
       @output.puts "Downloading #{remote}"            
       params = remote.split(":")
       file = params.last.split("/").last
-      Net::SCP.start(params[0], "clint") do |scp|
+      Net::SCP.start(params[0], ENV['USER']) do |scp|
         scp.download!(params[1], local_path, {:recursive => true, :verbose => true}) do |ch, name, sent, total|
           # => progress?
         end
Use current UNIX user, incase your name isn't Clint
