Sha256: 5d0b3d8a591b864063239af133e71018958284c3938306ce0f68f02232b0d309

Contents?: true

Size: 655 Bytes

Versions: 13

Compression:

Stored size: 655 Bytes

Contents

require "pathname"

require "vagrant"

require Vagrant.source_root.join("plugins/hosts/linux/host")

module VagrantPlugins
  module HostOpenSUSE
    class Host < VagrantPlugins::HostLinux::Host
      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

      # Normal, mid-range precedence.
      def self.precedence
        5
      end

      def initialize(*args)
        super

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

Version data entries

13 entries across 13 versions & 5 rubygems

Version Path
vagrant-shell-0.2.9 demo/templates/vendor/bundle/ruby/1.9.1/gems/tnargav-1.2.2/plugins/hosts/opensuse/host.rb
tnargav-1.2.3 plugins/hosts/opensuse/host.rb
vagrant-shell-0.2.8 demo/templates/vendor/bundle/ruby/1.9.1/gems/tnargav-1.2.2/plugins/hosts/opensuse/host.rb
vagrant-shell-0.2.6 vendor/bundle/gems/tnargav-1.2.2/plugins/hosts/opensuse/host.rb
vagrant-shell-0.2.5 vendor/bundle/gems/tnargav-1.2.2/plugins/hosts/opensuse/host.rb
tnargav-1.2.2 plugins/hosts/opensuse/host.rb
vagrantup-1.1.3 plugins/hosts/opensuse/host.rb
vagrantup-1.1.2 plugins/hosts/opensuse/host.rb
vagrantup-1.1.1 plugins/hosts/opensuse/host.rb
vagrantup-1.1.0 plugins/hosts/opensuse/host.rb
vagrantup-1.1.4 plugins/hosts/opensuse/host.rb
vagrant-actionio-0.0.9 vendor/bundle/bundler/gems/vagrant-c74251a1d9c0/plugins/hosts/opensuse/host.rb
vagrant-lxc-0.0.1 vendor/vagrant/plugins/hosts/opensuse/host.rb