lib/vagrant-parallels/provider.rb
# Returns the SSH info for accessing the Parallels VM.
Returns the SSH info for accessing the Parallels VM.
Returns the SSH info for accessing the Parallels VM .
def ssh_info
        return nil if state.id != :running
        detected_ip = @driver.ssh_ip
        return nil if !detected_ip
        {
          host: detected_ip,
          port: @driver.ssh_port(@machine.config.ssh.guest_port)
        }
      end
def ssh_info return nil if state . id != :running detected_ip = @driver . ssh_ip return nil if ! detected_ip { host : detected_ip , port : @driver . ssh_port ( @machine . config . ssh . guest_port ) } end
Returns the SSH info for accessing the Parallels VM.
Returns the SSH info for accessing the Parallels VM .
# If the VM is not running that we can't possibly SSH into it # If ip couldn't be detected then we cannot possibly SSH into it, # and should return nil too. # Return ip from running machine, use ip from config if available