vagrant/plugins/hosts/opensuse/host.rb

22 lines
397 B
Ruby
Raw Normal View History

2012-04-19 05:20:45 +00:00
require "pathname"
2012-05-23 23:03:14 +00:00
require "vagrant"
2012-04-19 05:20:45 +00:00
module VagrantPlugins
module HostOpenSUSE
2014-01-08 05:11:59 +00:00
class Host < Vagrant.plugin("2", :host)
2014-01-08 05:18:36 +00:00
def detect?(env)
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
end
end
end