I need to display a message on the completion of the vagrant up
command.
I've tried defining a function:
def hello
puts 'hello'
end
And then calling it and the end of the file:
hello
But it always prints at the beginning of the output rather than the end. How can I print a message at the end?
Once I've started to learn Ruby I've found the ideal solution :)
BEGIN Declares code to be called before the program is run.
it will produce this:
And it works perfectly inside of Vagrantfile.