Module: VagrantPluginDummy
- Defined in:
- lib/vagrant-plugin-dummy.rb,
lib/vagrant-plugin-dummy/errors.rb,
lib/vagrant-plugin-dummy/plugin.rb,
lib/vagrant-plugin-dummy/version.rb,
lib/vagrant-plugin-dummy/guest/dummy.rb,
lib/vagrant-plugin-dummy/communication/communicator.rb,
lib/vagrant-plugin-dummy/guest/cap/configure_networks.rb
Defined Under Namespace
Modules: Communication, Errors, Guest
Classes: Plugin
Constant Summary
collapse
- VERSION =
"0.0.7"
Class Method Summary
collapse
Class Method Details
.expand_script_path(script_file_name) ⇒ Object
18
19
20
|
# File 'lib/vagrant-plugin-dummy.rb', line 18
def self.expand_script_path(script_file_name)
File.expand_path("lib/vagrant-plugin-dummy/scripts/#{script_file_name}", VagrantPluginDummy.vagrant_plugin_dummy_root)
end
|
.load_script(script_file_name) ⇒ Object
9
10
11
|
# File 'lib/vagrant-plugin-dummy.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-plugin-dummy.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_plugin_dummy_root ⇒ Object
5
6
7
|
# File 'lib/vagrant-plugin-dummy.rb', line 5
def self.vagrant_plugin_dummy_root
@vagrant_plugin_dummy_root ||= Pathname.new(File.expand_path("../../", __FILE__))
end
|