pushes/harmony: stub I18n

This commit is contained in:
Mitchell Hashimoto 2014-10-29 09:41:47 -07:00 committed by Seth Vargo
parent efffc5f2f7
commit f3f4f4aeb6
1 changed files with 12 additions and 0 deletions

View File

@ -12,13 +12,25 @@ module VagrantPlugins
config(:harmony, :push) do config(:harmony, :push) do
require File.expand_path("../config", __FILE__) require File.expand_path("../config", __FILE__)
init!
Config Config
end end
push(:harmony) do push(:harmony) do
require File.expand_path("../push", __FILE__) require File.expand_path("../push", __FILE__)
init!
Push Push
end end
protected
def self.init!
return if defined?(@_init)
I18n.load_path << File.expand_path(
"templates/locales/TODO.yml", Vagrant.source_root)
I18n.reload!
@_init = true
end
end end
end end
end end