Skip to content

finish example file_transfer#7

Open
walotta wants to merge 1 commit intomainfrom
walotta/issue4
Open

finish example file_transfer#7
walotta wants to merge 1 commit intomainfrom
walotta/issue4

Conversation

@walotta
Copy link
Copy Markdown
Collaborator

@walotta walotta commented Jun 10, 2023

No description provided.

@walotta walotta linked an issue Jun 10, 2023 that may be closed by this pull request
Copy link
Copy Markdown

@camelop camelop left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

consider adding a short readme?
also don't forget to update version number

roles = ["sender", "receiver"]
participants = []
threads = []
for i in range(2):
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

?

task_id = cls[0].run_task("file_transfer", "example.txt", participants, True)
cls[1].wait_task(task_id)
recv_file = cls[1].read_entry("example:file_transfer:receive_file_content")
print("Received file: ", recv_file)
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

review naming?


with open("param.json",'r') as f:
param = json.load(f)
file_name = base64.b64decode(param["param"])
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

?

check_exit_code = 0

[[file_transfer.roles.sender.playbook.steps]]
step_name = "load_file"
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

reorganize? ln?


[[file_transfer.roles.receiver.playbook.steps]]
step_name = "store_file"
process = "cp receive_file $(cat file_name)"
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

mv

@@ -0,0 +1,8 @@
import json
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

python -c ?

@camelop camelop linked an issue Jun 28, 2023 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

In-repo example & instruction for simulation Update version number to be consistent

2 participants