리눅스
fabric hello print on CentOS 8
변군이글루
2021. 1. 11. 17:19
반응형
fabric hello print on CentOS 8
테스트 환경
$ cat /etc/redhat-release
CentOS Linux release 8.1.1911 (Core)
$ python -V
Python 3.6.8
$ fab -V
Fabric 2.5.0
Paramiko 2.7.2
Invoke 1.5.0
fabfile.py 파일 편집
vim fabfile.py
$ vim fabfile.py
from fabric import task
@task
def hello(ctx):
print("hello world.")
fab 실행
$ fab --list
Available tasks:
hello
fab hello
$ fab hello
hello world.
728x90
반응형