Permalink
Browse files

Add super class GTTransferObjet to handle setting up output for each

class of download
  • Loading branch information...
catsby committed Feb 13, 2011
1 parent 9c9cdc8 commit 025550eb36ad67dd472481760eef11ab8b6e2e10
Showing with 8 additions and 5 deletions.
  1. +8 −5 lib/growl-transfer/gt_scp.rb
@@ -1,9 +1,12 @@
module GrowlTransfer
class GTScp
def initialize(output)
@output = output
end

class GTTransferObjet
def initialize
@output = GrowlTransfer::DEFAULTS['output']
end
end

class GTScp < GTTransferObjet

def download(remote, local_path)
@output.puts "Downloading #{remote}"
params = remote.split(":")

0 comments on commit 025550e

Please sign in to comment.