Add test for deploy create

This commit is contained in:
David Boreham 2023-07-31 14:46:22 -06:00
parent a081cc32c2
commit 2d3ec2f91f

View File

@ -45,6 +45,13 @@ def init(command_context: DeployCommandContext):
return yaml.load(default_spec_file_content) return yaml.load(default_spec_file_content)
def create(command_context: DeployCommandContext):
data = "create-command-output-data"
output_file_path = command_context.deployment_dir.joinpath("create-file")
with open(output_file_path, 'w+') as output_file:
output_file.write(data)
def get_state(command_context: DeployCommandContext): def get_state(command_context: DeployCommandContext):
print("Here we get state") print("Here we get state")
return State.CONFIGURED return State.CONFIGURED