Skip to content

Instantly share code, notes, and snippets.

@mdarby
Created January 22, 2014 17:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mdarby/8562787 to your computer and use it in GitHub Desktop.
Save mdarby/8562787 to your computer and use it in GitHub Desktop.
Net::SSH.start(FileServerIP, "root", password: FileServerPassword, config: false) do |ssh|
objects.each do |o|
ssh.exec!("cmd.exe /c /cygwin/bin/curl.exe \"#{o.download_url}\" > \"#{dir}\\#{o.file_file_name}\"")
end
end
@jesscanady
Copy link

😱

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment