commit
a68a1de21f
1 changed files with 13 additions and 4 deletions
|
@ -11,20 +11,19 @@ module Vagrant
|
||||||
|
|
||||||
provider(:lxc, parallel: true, priority: 7) do
|
provider(:lxc, parallel: true, priority: 7) do
|
||||||
require File.expand_path("../provider", __FILE__)
|
require File.expand_path("../provider", __FILE__)
|
||||||
|
init!
|
||||||
I18n.load_path << File.expand_path(File.dirname(__FILE__) + '/../../locales/en.yml')
|
|
||||||
I18n.reload!
|
|
||||||
|
|
||||||
Provider
|
Provider
|
||||||
end
|
end
|
||||||
|
|
||||||
command "lxc" do
|
command "lxc" do
|
||||||
require_relative 'command/root'
|
require_relative 'command/root'
|
||||||
|
init!
|
||||||
Command::Root
|
Command::Root
|
||||||
end
|
end
|
||||||
|
|
||||||
config(:lxc, :provider) do
|
config(:lxc, :provider) do
|
||||||
require File.expand_path("../config", __FILE__)
|
require File.expand_path("../config", __FILE__)
|
||||||
|
init!
|
||||||
Config
|
Config
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -37,6 +36,16 @@ module Vagrant
|
||||||
require_relative "provider/cap/public_address"
|
require_relative "provider/cap/public_address"
|
||||||
Provider::Cap::PublicAddress
|
Provider::Cap::PublicAddress
|
||||||
end
|
end
|
||||||
|
|
||||||
|
protected
|
||||||
|
|
||||||
|
def self.init!
|
||||||
|
return if defined?(@_init)
|
||||||
|
I18n.load_path << File.expand_path(File.dirname(__FILE__) + '/../../locales/en.yml')
|
||||||
|
I18n.reload!
|
||||||
|
@_init = true
|
||||||
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue