Rename docker_client and docker_installer
We can rename those classes and remove the docker_ prefix as they already have a module namespace.
This commit is contained in:
parent
152c6b92ac
commit
c57073da7b
|
@ -2,7 +2,7 @@ require 'digest/sha1'
|
||||||
|
|
||||||
module VagrantPlugins
|
module VagrantPlugins
|
||||||
module Docker
|
module Docker
|
||||||
class DockerClient
|
class Client
|
||||||
def initialize(machine)
|
def initialize(machine)
|
||||||
@machine = machine
|
@machine = machine
|
||||||
end
|
end
|
|
@ -1,6 +1,6 @@
|
||||||
module VagrantPlugins
|
module VagrantPlugins
|
||||||
module Docker
|
module Docker
|
||||||
class DockerInstaller
|
class Installer
|
||||||
def initialize(machine, version)
|
def initialize(machine, version)
|
||||||
@machine = machine
|
@machine = machine
|
||||||
@version = version
|
@version = version
|
|
@ -1,5 +1,5 @@
|
||||||
require_relative "docker_client"
|
require_relative "client"
|
||||||
require_relative "docker_installer"
|
require_relative "installer"
|
||||||
|
|
||||||
module VagrantPlugins
|
module VagrantPlugins
|
||||||
module Docker
|
module Docker
|
||||||
|
@ -13,9 +13,8 @@ module VagrantPlugins
|
||||||
def initialize(machine, config, installer = nil, client = nil)
|
def initialize(machine, config, installer = nil, client = nil)
|
||||||
super(machine, config)
|
super(machine, config)
|
||||||
|
|
||||||
# TODO: Rename to installer / client (drop docker suffix)
|
@installer = installer || Installer.new(@machine, config.version)
|
||||||
@installer = installer || DockerInstaller.new(@machine, config.version)
|
@client = client || Client.new(@machine)
|
||||||
@client = client || DockerClient.new(@machine)
|
|
||||||
end
|
end
|
||||||
|
|
||||||
def provision
|
def provision
|
||||||
|
|
Loading…
Reference in New Issue