Skip to content

Commit

Permalink
Add super class GTTransferObjet to handle setting up output for each
Browse files Browse the repository at this point in the history
class of download
  • Loading branch information
catsby committed Feb 13, 2011
1 parent 9c9cdc8 commit 025550e
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions 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(":")
Expand Down

0 comments on commit 025550e

Please sign in to comment.