#!/usr/bin/python3
# fabric script generates a tgz archive
from fabric.api import *
from datetime import datetime


def do_pack():
    """
    creates tgz
    """
    filetime = datetime.now().strftime('%Y%m%d%H%M%s')
    filename = 'versions/web_static_{}.tgz'.format(filetime)
    try:
        local("mkdir -p versions")
        local('tar -cvzf {} web_static'.format(filename))
        return filename
    except:
        return None

8cdbf16716b0b7bd57113fdfeaf55074c0774322
<mask token>

<mask token>


def do_pack():
    """
    creates tgz
    """
    filetime = datetime.now().strftime('%Y%m%d%H%M%s')
    filename = 'versions/web_static_{}.tgz'.format(filetime)
    try:
        local('mkdir -p versions')
        local('tar -cvzf {} web_static'.format(filename))
        return filename
    except:
        return None

from fabric.api import *
from datetime import datetime


def do_pack():
    """
    creates tgz
    """
    filetime = datetime.now().strftime('%Y%m%d%H%M%s')
    filename = 'versions/web_static_{}.tgz'.format(filetime)
    try:
        local('mkdir -p versions')
        local('tar -cvzf {} web_static'.format(filename))
        return filename
    except:
        return None

#!/usr/bin/python3
# fabric script generates a tgz archive
from fabric.api import *
from datetime import datetime


def do_pack():
    """
    creates tgz
    """
    filetime = datetime.now().strftime('%Y%m%d%H%M%s')
    filename = 'versions/web_static_{}.tgz'.format(filetime)
    try:
        local("mkdir -p versions")
        local('tar -cvzf {} web_static'.format(filename))
        return filename
    except:
        return None
