Created
November 21, 2015 23:32
-
-
Save anonymous/76b965cc4f41d39615e2 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
def create_deploys(self): | |
''' Separate out the deploys from the rest of the tasks section | |
and return them. | |
''' | |
# rdeploys = [step for step in self.tasks['tasks'] if 'rdepoy' in step] | |
rdeploys = [] | |
# Loop over the tasks section and return all rdeploys | |
for step in self.tasks['tasks']: | |
if 'rdeploy' in step: | |
rdeploys.append(step) | |
return rdeploys |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment