
#import os
#import logging as log
#import pandas as pd
#from datetime import datetime as d
##import zipfile
#import pexpect
import subprocess

#------------------------------------------------------------------------------
class S2S(object):
    """S2S (Send 2 Server)"""
    def __init__(username, server_address):
        address = server_address
        user = username
        sendto = user + "@" + address + ":"
        return sendto

    def scpto(self, file, destpath):
        cmd = "scp " + file + " " + self.sendto + destpath
        status = subprocess.call([cmd], shell=True)
        if status == 0:  # Command was successful.
            print("%s file sent." % file)
            pass  # Continue
        else:  # Unsuccessful. Stdout will be '1'.
            print("%s file not sent." % file)


#import os
#import logging as log
#import pandas as pd
#from datetime import datetime as d
##import zipfile
#import pexpect
import subprocess

#------------------------------------------------------------------------------
class S2S(object):
    """S2S (Send 2 Server) is designed for use with a public ssh key."""
    def __init__(username, server_address):
        address = server_address
        user = username
        sendto = user + "@" + address + ":"
        return sendto

    def scpto(self, file, destpath):
        cmd = "scp " + file + " " + self.sendto + destpath
        status = subprocess.call([cmd], shell=True)
        if status == 0:  # Command was successful.
            print("%s file sent." % file)
            pass  # Continue
        else:  # Unsuccessful. Stdout will be '1'.
            print("%s file not sent." % file)

Update description. Module needs testing.
Update description. Module needs testing.

  
  #import os
  #import logging as log
  #import pandas as pd
  #from datetime import datetime as d
  ##import zipfile
  #import pexpect
  import subprocess
  
  #------------------------------------------------------------------------------
  class S2S(object):
-     """S2S (Send 2 Server)"""
+     """S2S (Send 2 Server) is designed for use with a public ssh key."""
      def __init__(username, server_address):
          address = server_address
          user = username
          sendto = user + "@" + address + ":"
          return sendto
  
      def scpto(self, file, destpath):
          cmd = "scp " + file + " " + self.sendto + destpath
          status = subprocess.call([cmd], shell=True)
          if status == 0:  # Command was successful.
              print("%s file sent." % file)
              pass  # Continue
          else:  # Unsuccessful. Stdout will be '1'.
              print("%s file not sent." % file)
  
Update description. Module needs testing.
## Code Before:

#import os
#import logging as log
#import pandas as pd
#from datetime import datetime as d
##import zipfile
#import pexpect
import subprocess

#------------------------------------------------------------------------------
class S2S(object):
    """S2S (Send 2 Server)"""
    def __init__(username, server_address):
        address = server_address
        user = username
        sendto = user + "@" + address + ":"
        return sendto

    def scpto(self, file, destpath):
        cmd = "scp " + file + " " + self.sendto + destpath
        status = subprocess.call([cmd], shell=True)
        if status == 0:  # Command was successful.
            print("%s file sent." % file)
            pass  # Continue
        else:  # Unsuccessful. Stdout will be '1'.
            print("%s file not sent." % file)

## Instruction:
Update description. Module needs testing.
## Code After:

#import os
#import logging as log
#import pandas as pd
#from datetime import datetime as d
##import zipfile
#import pexpect
import subprocess

#------------------------------------------------------------------------------
class S2S(object):
    """S2S (Send 2 Server) is designed for use with a public ssh key."""
    def __init__(username, server_address):
        address = server_address
        user = username
        sendto = user + "@" + address + ":"
        return sendto

    def scpto(self, file, destpath):
        cmd = "scp " + file + " " + self.sendto + destpath
        status = subprocess.call([cmd], shell=True)
        if status == 0:  # Command was successful.
            print("%s file sent." % file)
            pass  # Continue
        else:  # Unsuccessful. Stdout will be '1'.
            print("%s file not sent." % file)
