Module: VagrantWindows

Defined in:
lib/vagrant-windows.rb,
lib/vagrant-windows/errors.rb,
lib/vagrant-windows/helper.rb,
lib/vagrant-windows/plugin.rb,
lib/vagrant-windows/version.rb,
lib/vagrant-windows/config/winrm.rb,
lib/vagrant-windows/guest/windows.rb,
lib/vagrant-windows/config/windows.rb,
lib/vagrant-windows/guest/cap/halt.rb,
lib/vagrant-windows/communication/winrmshell.rb,
lib/vagrant-windows/communication/winrmfinder.rb,
lib/vagrant-windows/communication/guestnetwork.rb,
lib/vagrant-windows/guest/cap/change_host_name.rb,
lib/vagrant-windows/guest/cap/configure_networks.rb,
lib/vagrant-windows/guest/cap/mount_shared_folder.rb,
lib/vagrant-windows/communication/winrmcommunicator.rb

Defined Under Namespace

Modules: Communication, Config, Errors, Guest, Helper Classes: Plugin

Constant Summary collapse

VERSION =
"1.2.2"

Class Method Summary collapse

Class Method Details

.expand_script_path(script_file_name) ⇒ Object



17
18
19
# File 'lib/vagrant-windows.rb', line 17

def self.expand_script_path(script_file_name)
  File.expand_path("lib/vagrant-windows/scripts/#{script_file_name}", VagrantWindows.vagrant_windows_root)
end

.load_script(script_file_name) ⇒ Object



9
10
11
# File 'lib/vagrant-windows.rb', line 9

def self.load_script(script_file_name)
  File.read(expand_script_path(script_file_name))
end

.load_script_template(script_file_name, options) ⇒ Object



13
14
15
# File 'lib/vagrant-windows.rb', line 13

def self.load_script_template(script_file_name, options)
  Vagrant::Util::TemplateRenderer.render(expand_script_path(script_file_name), options)
end

.vagrant_windows_rootObject



5
6
7
# File 'lib/vagrant-windows.rb', line 5

def self.vagrant_windows_root
  @vagrant_windows_root ||= Pathname.new(File.expand_path("../../", __FILE__))
end