Class: Vagrant::Hosts::Gentoo

Inherits:
Linux show all
Defined in:
lib/vagrant/hosts/gentoo.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Linux

#nfs?, #nfs_export, #nfs_prune

Methods included from Util::Retryable

#retryable

Methods inherited from Base

#nfs?, #nfs_export, #nfs_prune

Constructor Details

#initialize(*args) ⇒ Gentoo

Returns a new instance of Gentoo.



13
14
15
16
17
# File 'lib/vagrant/hosts/gentoo.rb', line 13

def initialize(*args)
  super

  @nfs_server_binary = "/etc/init.d/nfs"
end

Class Method Details

.match?Boolean

Returns:

  • (Boolean)


4
5
6
# File 'lib/vagrant/hosts/gentoo.rb', line 4

def self.match?
  return File.exists?("/etc/gentoo-release")
end

.precedenceObject

Normal, mid-range precedence.



9
10
11
# File 'lib/vagrant/hosts/gentoo.rb', line 9

def self.precedence
  5
end