vagrant/plugins/hosts/slackware/host.rb

13 lines
269 B
Ruby
Raw Normal View History

require "vagrant"
module VagrantPlugins
module HostSlackware
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)
2014-01-08 05:11:59 +00:00
return File.exists?("/etc/slackware-release") ||
!Dir.glob("/usr/lib/setup/Plamo-*").empty?
end
end
end
end