Created
May 16, 2013 11:15
-
-
Save tjl2/5591015 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def create_at_job | |
# Creates an at job to call our vm.kickstart_destroyer_url in 5 minutes (gives the | |
# installation chance to use the KS file) | |
unless @verbose | |
output = ">> /dev/null 2>&1" | |
else | |
output = '' | |
end | |
at_file = "/tmp/ksd-#{@name}" | |
`echo "wget -q #{@vm.kickstart_destroyer_url}; rm #{at_file}" > #{at_file}` | |
`at -f #{at_file} now + 5 minutes #{output}` | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment