1
Fork 0

Added check for basics to sync CLI

This commit is contained in:
Jake Howard 2015-12-04 08:50:30 +00:00
parent 6ffd153c9e
commit 7025f028c9
2 changed files with 5 additions and 10 deletions

View file

@ -1,6 +1,9 @@
import click
from project.utils import config, constants
@click.command('sync')
def cli():
pass
if not config.has_basics():
print("You do not have all the basic requirements set.")
return 1

View file

@ -6,14 +6,6 @@ def has_repo_cloned():
return os.path.isdir('./data')
def has_required_config_set():
REQUIRED_KEYS = ['public_repo']
for key in REQUIRED_KEYS:
if not config.get(key):
return False
return True
def clone_public_data():
exit_code = 0
exit_code = os.system("git clone -b master --single-branch {} data"