providers/docker: Get rid of some explicit requires in favor of autoloading
This commit is contained in:
parent
3325bce2d0
commit
87d2f35718
|
@ -1,5 +1,3 @@
|
||||||
require_relative '../errors'
|
|
||||||
|
|
||||||
module VagrantPlugins
|
module VagrantPlugins
|
||||||
module DockerProvider
|
module DockerProvider
|
||||||
module Action
|
module Action
|
||||||
|
|
|
@ -1,5 +1,3 @@
|
||||||
require 'vagrant/errors'
|
|
||||||
|
|
||||||
module VagrantPlugins
|
module VagrantPlugins
|
||||||
module DockerProvider
|
module DockerProvider
|
||||||
module Errors
|
module Errors
|
||||||
|
|
|
@ -1,5 +1,9 @@
|
||||||
module VagrantPlugins
|
module VagrantPlugins
|
||||||
module DockerProvider
|
module DockerProvider
|
||||||
|
autoload :Action, File.expand_path("../action", __FILE__)
|
||||||
|
autoload :Driver, File.expand_path("../driver", __FILE__)
|
||||||
|
autoload :Errors, File.expand_path("../errors", __FILE__)
|
||||||
|
|
||||||
class Plugin < Vagrant.plugin("2")
|
class Plugin < Vagrant.plugin("2")
|
||||||
name "docker-provider"
|
name "docker-provider"
|
||||||
|
|
||||||
|
|
|
@ -1,8 +1,5 @@
|
||||||
require "log4r"
|
require "log4r"
|
||||||
|
|
||||||
require_relative 'driver'
|
|
||||||
require_relative 'action'
|
|
||||||
|
|
||||||
module VagrantPlugins
|
module VagrantPlugins
|
||||||
module DockerProvider
|
module DockerProvider
|
||||||
class Provider < Vagrant.plugin("2", :provider)
|
class Provider < Vagrant.plugin("2", :provider)
|
||||||
|
|
Loading…
Reference in New Issue