vagrantfile - Print message after booting vagrant machine with "vagrant up" -
i need display message on completion of vagrant up
command.
i've tried defining function:
def hello puts 'hello' end
and calling , end of file:
hello
but prints @ beginning of output rather end. how can print message @ end?
vagrant has builtin support message appear after vagrant up
. add vagrantfile
:
config.vm.post_up_message = "this start message!"
and after vm has come you'll see message in green:
==> default: machine 'default' has post `vagrant up` message. message ==> default: creator of vagrantfile, , not vagrant itself: ==> default: ==> default: start message!
Comments
Post a Comment