forked from cerc-io/stack-orchestrator
Cleanup
This commit is contained in:
parent
d99f548af8
commit
fd03a8ebb7
@ -50,15 +50,13 @@ if not os.path.isdir(dev_root_path):
|
|||||||
print(f'Dev root directory doesn\'t exist, creating')
|
print(f'Dev root directory doesn\'t exist, creating')
|
||||||
os.makedirs(dev_root_path)
|
os.makedirs(dev_root_path)
|
||||||
|
|
||||||
with open("repository-list.txt") as repositoryListFile:
|
with open("repository-list.txt") as repository_list_file:
|
||||||
repos = repositoryListFile.read().splitlines()
|
repos = repository_list_file.read().splitlines()
|
||||||
|
|
||||||
if verbose:
|
if verbose:
|
||||||
print (f'Repos: {repos}')
|
print (f'Repos: {repos}')
|
||||||
|
|
||||||
# Ok, now we can go ahead and look to see which if any of the repos are already cloned
|
def process_repo(repo):
|
||||||
|
|
||||||
def processRepo(repo):
|
|
||||||
full_github_repo_path = f'git@github.com:{repo}'
|
full_github_repo_path = f'git@github.com:{repo}'
|
||||||
repoName = repo.split("/")[-1]
|
repoName = repo.split("/")[-1]
|
||||||
full_filesystem_repo_path = os.path.join(dev_root_path, repoName)
|
full_filesystem_repo_path = os.path.join(dev_root_path, repoName)
|
||||||
@ -83,4 +81,4 @@ def processRepo(repo):
|
|||||||
|
|
||||||
|
|
||||||
for repo in repos:
|
for repo in repos:
|
||||||
processRepo(repo)
|
process_repo(repo)
|
||||||
|
Loading…
Reference in New Issue
Block a user