'Upload the file, retaining permissions.
See also :class:`Deployment.run`'

def run(self, node, client):

    perms = int(oct(os.stat(self.source).st_mode)[4:], 8)
    with open(self.source, 'rb') as fp:
        content = fp.read()
    client.put(path=self.target, chmod=perms, contents=content)
    return node
