File tree 1 file changed +8
-5
lines changed
1 file changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -17,17 +17,20 @@ def options(**kwargs) -> MemoryBackendOptions:
17
17
def __init__ (self , args : MemoryBackendOptions ) -> None :
18
18
pass
19
19
20
- # fetchToFile: acquire a lock and download the state file to
21
- # the local disk. Note: no arguments will be passed over kwargs.
22
- # Making it part of the type definition allows adding new
23
- # arguments later.
20
+ # fetchToFile: download the state file to the local disk.
21
+ # Note: no arguments will be passed over kwargs. Making it part of
22
+ # the type definition allows adding new arguments later.
24
23
def fetchToFile (self , path : str , ** kwargs ) -> None :
25
24
pass
26
25
26
+ # onOpen: receive the StateFile object for last-minute, backend
27
+ # specific changes to the state file.
28
+ # Note: no arguments will be passed over kwargs. Making it part of
29
+ # the type definition allows adding new arguments later.
27
30
def onOpen (self , sf : nixops .statefile .StateFile , ** kwargs ) -> None :
28
31
sf .create_deployment ()
29
32
30
- # uploadFromFile: upload the new state file and release any locks
33
+ # uploadFromFile: upload the new version of the state file
31
34
# Note: no arguments will be passed over kwargs. Making it part of
32
35
# the type definition allows adding new arguments later.
33
36
def uploadFromFile (self , path : str , ** kwargs ) -> None :
You can’t perform that action at this time.
0 commit comments