Sha256: 8a82842c92a1face8894e02cd6c60c38d195a1cfb0aed4c1ca14bf1223dc7126

Contents?: true

Size: 557 Bytes

Versions: 5

Compression:

Stored size: 557 Bytes

Contents

module SCP
  class Upload
    def initialize(host, user, password, local_file, remote_file)
      begin
        Net::SCP.start(host, user, :password => password) { |scp| scp.upload! local_file, remote_file }
      rescue => e
        retry
      end
    end
  end
  class Download
    def initialize(host, user, password, remote_file, local_file)
      begin
        Net::SCP.start(host, user, :password => password) { |scp| scp.download! remote_file, local_file }
      rescue => e
        retry
      end
      
    end
  end
  
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
qa_robusta-0.1.9 remote_unix/lib/scp.rb
qa_robusta-0.1.8 remote_unix/lib/scp.rb
qa_robusta-0.1.5 remote_unix/lib/scp.rb
qa_robusta-0.1.4 remote_unix/lib/scp.rb
qa_robusta-0.1.3 remote_unix/lib/scp.rb