2013-08-24 13:10:51 +00:00
|
|
|
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?
|
2013-08-24 13:10:51 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|