Closed michalsustr closed 6 years ago
I think would be reasonable to implement following approach:
Let's have
Full verification right now is the same as scbw.play --install
, and quick verification relying on file presence. For example we will add writing file 'install.touch' with magic string sitting in the file. We will have 3 scenarios
Let's name current process
Case 1: 'install.marker' file is missing. Parameter --install
is not passed.
scbw.install()
~/scbw/
folderCase 2: 'install.marker' file is present, but content is unexpected. Parameter --install
is not passed.
scbw.install()
~/scbw/
folderCase 3: Parameter --install
is passed.
scbw.install()
~/scbw/
folder/cc: @michalsustr
Case 1 & 2 are implemented via docker versioning scheme - if we have the image of the right version, it can be assumed we have installed things correctly.
Case 3 still stays there.
https://github.com/Games-and-Simulations/sc-docker/blob/master/scbw/cli.py#L157