lib/vagrant-parallels/action/handle_guest_tools.rb
# Determines the state of Parallels Tools
#
# @return [Symbol] Parallels Tools state (ex. :installed, :outdated,
# :not_installed, :possibly_installed)
Determines the state of Parallels Tools
Determines the state of Parallels Tools
def parallels_tools_state
          3.times do
            state = @machine.provider.driver.read_guest_tools_state
            return state if state != :possibly_installed
            sleep 2
          end
          @machine.provider.driver.read_guest_tools_state
        end
def parallels_tools_state 3 . times do state = @machine . provider . driver . read_guest_tools_state return state if state != :possibly_installed sleep 2 end @machine . provider . driver . read_guest_tools_state end
Determines the state of Parallels Tools
Determines the state of Parallels Tools
# Sometimes tools can define their state with a little delay. # If it is 'possibly_installed', then just wait a bit and try again.
Parallels Tools state (ex. :installed, :outdated, :not_installed, :possibly_installed)
Parallels Tools state ( ex . : installed : outdated : not_installed : possibly_installed )
Symbol