Commit 7fb3dff4 authored by anonym's avatar anonym
Browse files

Add VM helper for overwriting files.

parent 1371722d
......@@ -525,6 +525,11 @@ EOF
end
end
def file_overwrite(*args)
execute_successfully("rm -f '#{args.first}'")
file_append(*args)
end
def set_clipboard(text)
execute_successfully("echo -n '#{text}' | xsel --input --clipboard",
:user => LIVE_USER)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment