Sha256: 5a3df417331f6b097dd7492fbb7890dcf0f516ea6e71eb72536f2ca941d51e6b

Contents?: true

Size: 632 Bytes

Versions: 18

Compression:

Stored size: 632 Bytes

Contents

require "pathname"

module VagrantWindows
  
  def self.vagrant_windows_root
    @vagrant_windows_root ||= Pathname.new(File.expand_path("../../", __FILE__))
  end
  
  def self.load_script(script_file_name)
    File.read(expand_script_path(script_file_name))
  end
  
  def self.load_script_template(script_file_name, options)
    Vagrant::Util::TemplateRenderer.render(expand_script_path(script_file_name), options)
  end
  
  def self.expand_script_path(script_file_name)
    File.expand_path("lib/vagrant-windows/scripts/#{script_file_name}", VagrantWindows.vagrant_windows_root)
  end

  
end

require "vagrant-windows/plugin"

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
vagrant-windows-1.7.0.pre.2 lib/vagrant-windows.rb
vagrant-windows-1.7.0.pre.1 lib/vagrant-windows.rb
vagrant-windows-1.6.0 lib/vagrant-windows.rb
vagrant-windows-1.6.0.pre.1 lib/vagrant-windows.rb
vagrant-windows-1.5.1 lib/vagrant-windows.rb
vagrant-windows-1.5.0 lib/vagrant-windows.rb
vagrant-windows-1.4.0 lib/vagrant-windows.rb
vagrant-windows-1.3.2 lib/vagrant-windows.rb
vagrant-windows-1.3.1 lib/vagrant-windows.rb
vagrant-windows-1.3.0 lib/vagrant-windows.rb
vagrant-windows-1.3.0.pre.3 lib/vagrant-windows.rb
vagrant-windows-1.3.0.pre.2 lib/vagrant-windows.rb
vagrant-windows-1.3.0.pre.1 lib/vagrant-windows.rb
vagrant-windows-1.2.3 lib/vagrant-windows.rb
vagrant-windows-1.2.2 lib/vagrant-windows.rb
vagrant-windows-1.2.1 lib/vagrant-windows.rb
vagrant-windows-1.2.0 lib/vagrant-windows.rb
vagrant-windows-1.0.3 lib/vagrant-windows.rb