Skip to content

Commit

Permalink
Refactor TOML scenario configuration to use array of tables
Browse files Browse the repository at this point in the history
  • Loading branch information
st4s1k committed Feb 26, 2025
1 parent cfcd197 commit 7294d98
Showing 1 changed file with 22 additions and 22 deletions.
44 changes: 22 additions & 22 deletions example-scenario.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,28 +10,28 @@ password = "my_password"
host = "localhost"
port = "22"

# Execute section with steps
[[execute.steps]]
task = "copy_jar_to_server"

[[execute.steps]]
task = "stop_service"

[[execute.steps]]
task = "create_backup"
rollback = ["start_service"]

[[execute.steps]]
task = "remove_current_deploy"
rollback = ["restore_backup", "start_service"]

[[execute.steps]]
task = "deploy_new_file"
rollback = ["restore_backup", "start_service"]

[[execute.steps]]
task = "start_service"
rollback = ["restore_backup", "start_service"]
[execute]
steps = [
{ task = "copy_jar_to_server" },
{ task = "stop_service", rollback = [
"start_service"
] },
{ task = "create_backup", rollback = [
"start_service"
] },
{ task = "remove_current_deploy", rollback = [
"restore_backup",
"start_service"
] },
{ task = "deploy_new_file", rollback = [
"restore_backup",
"start_service"
] },
{ task = "start_service", rollback = [
"restore_backup",
"start_service"
] }
]

# Variables section
[variables]
Expand Down

0 comments on commit 7294d98

Please sign in to comment.