lib/vagrant-libvirt/plugin.rb in vagrant-libvirt-0.0.6 vs lib/vagrant-libvirt/plugin.rb in vagrant-libvirt-0.0.7
- old
+ new
@@ -10,20 +10,20 @@
if Vagrant::VERSION < '1.1.0'
raise "The Vagrant Libvirt plugin is only compatible with Vagrant 1.1+"
end
module VagrantPlugins
- module Libvirt
+ module ProviderLibvirt
class Plugin < Vagrant.plugin('2')
- name "libvirt"
+ name 'libvirt'
description <<-DESC
Vagrant plugin to manage VMs in libvirt.
DESC
- config("libvirt", :provider) do
- require_relative "config"
+ config('libvirt', :provider) do
+ require_relative 'config'
Config
end
provider "libvirt" do
# Setup logging and i18n
@@ -35,10 +35,10 @@
end
# This initializes the internationalization strings.
def self.setup_i18n
- I18n.load_path << File.expand_path("locales/en.yml", Libvirt.source_root)
+ I18n.load_path << File.expand_path("locales/en.yml", ProviderLibvirt.source_root)
I18n.reload!
end
# This sets up our log level to be whatever VAGRANT_LOG is.