Sha256: 2d10d61308fcdeb45d3fbba56c92957b1c0dfae1de7292a640b97ad0ee9709c3

Contents?: true

Size: 677 Bytes

Versions: 7

Compression:

Stored size: 677 Bytes

Contents

require "pathname"

module VagrantPluginDummy

  def self.vagrant_plugin_dummy_root
    @vagrant_plugin_dummy_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

  # TODO: unnecessary?
  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

end

require "vagrant-plugin-dummy/plugin"

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
vagrant-plugin-dummy-0.0.7 lib/vagrant-plugin-dummy.rb
vagrant-plugin-dummy-0.0.6 lib/vagrant-plugin-dummy.rb
vagrant-plugin-dummy-0.0.5 lib/vagrant-plugin-dummy.rb
vagrant-plugin-dummy-0.0.4 lib/vagrant-plugin-dummy.rb
vagrant-plugin-dummy-0.0.3 lib/vagrant-plugin-dummy.rb
vagrant-plugin-dummy-0.0.1 lib/vagrant-plugin-dummy.rb
vagrant-plugin-dummy-0.0.2 lib/vagrant-plugin-dummy.rb