Returning a value from a reserve script to a rogue

Is it possible to return a value from a script reserve back to a tramp?

response = config.vm.provision( "shell", path: "script.sh" )

if response = 'ok'
   do_something
end

I could not see anything in the tramp docs , describing how this can be done.

+4
source share
1 answer

As far as I know, I do not think that such a value can be returned.

However, you can easily get around this by specifying a > <> w370> file in the /vagrantguest directory .

Then you can use Ruby to process this file, which will be in the same folder as yours Vagrantfile.

+1
source

All Articles