Skip to content

Instantly share code, notes, and snippets.

Created November 21, 2015 23:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save anonymous/76b965cc4f41d39615e2 to your computer and use it in GitHub Desktop.
Save anonymous/76b965cc4f41d39615e2 to your computer and use it in GitHub Desktop.
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