Last active
August 27, 2018 13:13
-
-
Save rubenmromero/365b162062b5a9abcab3436a889538eb to your computer and use it in GitHub Desktop.
Python :: Iterate by lines a variable that contains strings spread over several lines getting words allocated in specific column (separated by spaces)
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
with cd(project_path): | |
result = sudo('git submodule status') | |
for submodule in result.stdout.splitlines(): | |
application = submodule.split()[1] | |
deploy(application) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment