Skip to content

Instantly share code, notes, and snippets.

@kennethlove
Forked from anonymous/gist:76b965cc4f41d39615e2
Last active November 22, 2015 00:28
Show Gist options
  • Save kennethlove/b20d10130d59abd3998d to your computer and use it in GitHub Desktop.
Save kennethlove/b20d10130d59abd3998d 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]
return filter(lambda s: 'rdeploy' in s, self.tasks['tasks'])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment