Skip to content

Instantly share code, notes, and snippets.

@gabelula
Created August 22, 2012 18:35
Show Gist options
  • Save gabelula/3428201 to your computer and use it in GitHub Desktop.
Save gabelula/3428201 to your computer and use it in GitHub Desktop.
config = publishing_groups_config['entertainment']
ftp = Net::FTP.new
ftp.debug_mode = true
ftp.connect config[:host]
ftp.login config[:user], config[:pass]
ftp.ls <---- get stucks
ftp.putbinaryfile(file_path) <---- get stuck
ftp.close
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment