2012-05-23 23:03:14 +00:00
|
|
|
require "vagrant"
|
2014-01-08 05:13:21 +00:00
|
|
|
|
2012-01-08 19:14:01 +00:00
|
|
|
require 'vagrant/util/platform'
|
|
|
|
|
2012-04-19 05:20:45 +00:00
|
|
|
module VagrantPlugins
|
|
|
|
module HostWindows
|
2012-11-07 05:20:22 +00:00
|
|
|
class Host < Vagrant.plugin("2", :host)
|
2014-01-08 05:18:36 +00:00
|
|
|
def detect?(env)
|
2012-04-19 05:20:45 +00:00
|
|
|
Vagrant::Util::Platform.windows?
|
2012-01-08 19:14:01 +00:00
|
|
|
end
|
2018-06-12 17:49:10 +00:00
|
|
|
|
|
|
|
# @return [Pathname] Path to scripts directory
|
|
|
|
def self.scripts_path
|
2018-06-12 23:20:30 +00:00
|
|
|
Pathname.new(File.expand_path("../scripts", __FILE__))
|
2018-06-12 17:49:10 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
# @return [Pathname] Path to modules directory
|
|
|
|
def self.modules_path
|
|
|
|
scripts_path.join("utils")
|
|
|
|
end
|
2012-01-08 19:14:01 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|