emyl / vagrant-triggers

Allow the definition of arbitrary scripts that will run on the host before and/or after Vagrant commands.
MIT License
546 stars 35 forks source link

"run" Command Hangs When Subprocess Waits For User Input #53

Closed jpotterm closed 6 years ago

jpotterm commented 9 years ago

I have a Vagrantfile that contains the following:

config.vm.provision "trigger" do |trigger|
    trigger.fire do
        run "read"
    end
end

When I run vagrant provision it waits for input forever even when I type and hit enter.

If I use Ruby's system command instead, everything works as expected:

config.vm.provision "trigger" do |trigger|
    trigger.fire do
        system("read")
    end
end

Tested with vagrant-triggers 0.5.2

vinnyrose commented 9 years ago

:+1: