|
|
@ -27,6 +27,7 @@ __all__ = ( |
|
|
|
"sed", |
|
|
|
"sed", |
|
|
|
"symlink", |
|
|
|
"symlink", |
|
|
|
"touch", |
|
|
|
"touch", |
|
|
|
|
|
|
|
"wait", |
|
|
|
"Function", |
|
|
|
"Function", |
|
|
|
"Prompt", |
|
|
|
"Prompt", |
|
|
|
) |
|
|
|
) |
|
|
@ -542,6 +543,17 @@ def touch(path, **kwargs): |
|
|
|
|
|
|
|
|
|
|
|
return Command("touch %s" % path, **kwargs) |
|
|
|
return Command("touch %s" % path, **kwargs) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def wait(seconds, **kwargs): |
|
|
|
|
|
|
|
"""Pause execution for a number of seconds. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- seconds (int): The number of seconds to wait. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
""" |
|
|
|
|
|
|
|
kwargs.setdefault("comment", "pause for %s seconds" % seconds) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return Command("sleep %s" % seconds, **kwargs) |
|
|
|
|
|
|
|
|
|
|
|
# Classes |
|
|
|
# Classes |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -740,5 +752,6 @@ POSIX_MAPPINGS = { |
|
|
|
'ssl': certbot, |
|
|
|
'ssl': certbot, |
|
|
|
'symlink': symlink, |
|
|
|
'symlink': symlink, |
|
|
|
'touch': touch, |
|
|
|
'touch': touch, |
|
|
|
|
|
|
|
'wait': wait, |
|
|
|
'write': file_write, |
|
|
|
'write': file_write, |
|
|
|
} |
|
|
|
} |
|
|
|