Class: DownloadCommand

Inherits:
Clamp::Command
  • Object
show all
Defined in:
bin/filefm

Instance Method Summary collapse

Instance Method Details

#executeObject



52
53
54
55
56
57
58
59
60
61
62
63
# File 'bin/filefm', line 52

def execute
  file = files.join(" ")
  begin
    FileFM.download file, :progressbar => !no_progressbar?,
                          :secure => !insecure?,
                          :username => user,
                          :destination => destination,
                          :password => password
  rescue => e
    puts "ERROR: #{e.message}"
  end
end