Class: Vagrant::Hosts::OpenSUSE
- Defined in:
- lib/vagrant/hosts/opensuse.rb
Class Method Summary collapse
- .match? ⇒ Boolean
-
.precedence ⇒ Object
Normal, mid-range precedence.
Instance Method Summary collapse
-
#initialize(*args) ⇒ OpenSUSE
constructor
A new instance of OpenSUSE.
Methods inherited from Linux
#nfs?, #nfs_export, #nfs_prune
Methods included from Util::Retryable
Methods inherited from Base
#nfs?, #nfs_export, #nfs_prune
Constructor Details
#initialize(*args) ⇒ OpenSUSE
Returns a new instance of OpenSUSE.
23 24 25 26 27 |
# File 'lib/vagrant/hosts/opensuse.rb', line 23 def initialize(*args) super @nfs_server_binary = "/etc/init.d/nfsserver" end |
Class Method Details
.match? ⇒ Boolean
6 7 8 9 10 11 12 13 14 15 16 |
# File 'lib/vagrant/hosts/opensuse.rb', line 6 def self.match? release_file = Pathname.new("/etc/SuSE-release") if release_file.exist? release_file.open("r") do |f| return true if f.gets =~ /^openSUSE/ end end false end |
.precedence ⇒ Object
Normal, mid-range precedence.
19 20 21 |
# File 'lib/vagrant/hosts/opensuse.rb', line 19 def self.precedence 5 end |