Created
February 27, 2019 18:35
-
-
Save chrisconlon-klaviyo/b52571645c3e6bf3cfb4af61e4e4ab2b to your computer and use it in GitHub Desktop.
step_example.py
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 stack.step import KlaviyoStackTerraformStep | |
class MailDumpsterStep(KlaviyoStackTerraformStep): | |
STEP_NAME = 'mail_dumpster' | |
MODULE_NAME = 'mail_dumpster' | |
def __init__(self, stack): | |
self.stack = stack | |
super(MailDumpsterStep, self).__init__( | |
self.stack, | |
self.STEP_NAME, | |
include_secrets=True, | |
module=self.MODULE_NAME | |
) | |
def on_complete(self): | |
step_outputs = self.get_step_outputs() | |
self.update_zookeeper_znode_json_key_value( | |
self.zookeeper_env_node_key, | |
'hostname', | |
step_outputs['mail_dumpster_domain']['value'], | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment