'Upload and extract source.'

def upload_source(self):

    with tempfile.NamedTemporaryFile(prefix='ansible-source-', suffix='.tgz') as local_source_fd:
        remote_source_dir = '/tmp'
        remote_source_path = os.path.join(remote_source_dir, os.path.basename(local_source_fd.name))
        if (not self.core_ci.args.explain):
            lib.pytar.create_tarfile(local_source_fd.name, '.', lib.pytar.ignore)
        self.upload(local_source_fd.name, remote_source_dir)
        self.ssh(('rm    -rf    ~/ansible    &&    mkdir    ~/ansible    &&    cd    ~/ansible    &&    tar    oxzf    %s' % remote_source_path))
