providers/docker: Get rid of some explicit requires in favor of autoloading

This commit is contained in:
Fabio Rehm 2014-03-26 21:04:15 -03:00 committed by Mitchell Hashimoto
parent 3325bce2d0
commit 87d2f35718
4 changed files with 4 additions and 7 deletions

View File

@ -1,5 +1,3 @@
require_relative '../errors'
module VagrantPlugins
module DockerProvider
module Action

View File

@ -1,5 +1,3 @@
require 'vagrant/errors'
module VagrantPlugins
module DockerProvider
module Errors

View File

@ -1,5 +1,9 @@
module VagrantPlugins
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")
name "docker-provider"

View File

@ -1,8 +1,5 @@
require "log4r"
require_relative 'driver'
require_relative 'action'
module VagrantPlugins
module DockerProvider
class Provider < Vagrant.plugin("2", :provider)