Skip to content

Commit d64faf7

Browse files
committed
display description on deploy
1 parent c4fc39e commit d64faf7

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

deploy.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
from utils import banner
88
from check import check_requirements
99

10-
conf = yaml.load(open("./config.yml", 'r'))
10+
conf = yaml.load(open('./config.yml', 'r'))
1111

1212
cloning_method = 'ssh'
1313
if len(sys.argv) > 1 and sys.argv[1] == 'https':
@@ -41,8 +41,9 @@ def update(name, path):
4141
call(['git', 'pull'], cwd=path)
4242

4343

44-
def install(name, url, path):
44+
def install(name, description, url, path):
4545
print(banner.info('Now installing ' + name))
46+
print(description)
4647

4748
print(banner.info('Using ' + cloning_method + ' cloning method'))
4849
print('You may change the cloning method by passing https or ssh as an argument.')
@@ -58,7 +59,7 @@ def deploy():
5859
if os.path.exists(path):
5960
update(project['name'], path)
6061
else:
61-
install(project['name'], project['repository'][cloning_method], path)
62+
install(project['name'], project['description'], project['repository'][cloning_method], path)
6263

6364
check_requirements(project_id)
6465

run.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
from time import sleep
88
from utils import banner
99

10-
conf = yaml.load(open("./config.yml", 'r'))
10+
conf = yaml.load(open('./config.yml', 'r'))
1111

1212

1313
def start_all():

0 commit comments

Comments
 (0)