Skip to content

Instantly share code, notes, and snippets.

Created September 23, 2021 14:23
What would you like to do?
#!/usr/bin/env ruby
require "bundler/inline"
gemfile do
source ""
gem "net-sftp"
require "net/sftp"
Net::SFTP.start("", "joinery-bot", password: "<redacted>", port: 22) do |sftp|
# upload a file or directory to the remote host
sftp.upload! "~/projects/framebridge/glaze-joinery/foo.txt", "C:\\LPDropBox\\foo.txt"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment