-
-
Save vaz-ar/dac367545b16b905f070d56391acaae3 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
""" | |
Invoke init module | |
""" | |
from invoke import Collection | |
from tasks import testcheck | |
# One unnamed Collection is always the namespace root | |
ns = Collection() | |
ns.add_collection(testcheck) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
❯ pwd | |
/tmp/inv_test | |
❯ tree | |
. | |
├── invoke.yaml | |
└── tasks | |
├── __init__.py | |
└── testcheck.py | |
2 directories, 3 files |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
test1: value1 | |
test2: | |
var: value2 | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from invoke import task | |
@task | |
def check(ctx): | |
print(ctx.test1) | |
print(ctx.test2.var) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment