2014-03-26 23:45:46 +00:00
|
|
|
module VagrantPlugins
|
|
|
|
module DockerProvider
|
|
|
|
class Plugin < Vagrant.plugin("2")
|
|
|
|
name "docker-provider"
|
|
|
|
|
|
|
|
provider(:docker, parallel: true) do
|
|
|
|
require_relative 'provider'
|
2014-03-27 00:01:34 +00:00
|
|
|
init!
|
2014-03-26 23:45:46 +00:00
|
|
|
Provider
|
|
|
|
end
|
|
|
|
|
|
|
|
config(:docker, :provider) do
|
|
|
|
require_relative 'config'
|
2014-03-27 00:01:34 +00:00
|
|
|
init!
|
2014-03-26 23:45:46 +00:00
|
|
|
Config
|
|
|
|
end
|
|
|
|
|
|
|
|
synced_folder(:docker) do
|
|
|
|
require File.expand_path("../synced_folder", __FILE__)
|
|
|
|
SyncedFolder
|
|
|
|
end
|
2014-03-27 00:01:34 +00:00
|
|
|
|
|
|
|
protected
|
|
|
|
|
|
|
|
def self.init!
|
|
|
|
return if defined?(@_init)
|
|
|
|
I18n.load_path << File.expand_path(
|
|
|
|
"templates/locales/providers_docker.yml", Vagrant.source_root)
|
|
|
|
I18n.reload!
|
|
|
|
@_init = true
|
|
|
|
end
|
2014-03-26 23:45:46 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|