vagrant/plugins/hosts/windows/host.rb

24 lines
513 B
Ruby
Raw Normal View History

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
# @return [Pathname] Path to scripts directory
def self.scripts_path
Pathname.new(File.expand_path("../scripts", __FILE__))
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