class Net::SCP

def upload!(local, remote, options={}, &progress)

that is returned. The return value is not defined.
calling #upload and then calling the #wait method on the channel object
Same as #upload, but blocks until the upload finishes. Identical to
def upload!(local, remote, options={}, &progress)
  upload(local, remote, options, &progress).wait
end