Remove duplicated Driver#base_path method
This commit is contained in:
parent
0385a64d31
commit
23f531b38c
1 changed files with 3 additions and 6 deletions
|
@ -11,6 +11,9 @@ module Vagrant
|
||||||
# a name.
|
# a name.
|
||||||
class ContainerNotFound < StandardError; end
|
class ContainerNotFound < StandardError; end
|
||||||
|
|
||||||
|
# Root folder where container configs are stored
|
||||||
|
CONTAINERS_PATH = '/var/lib/lxc'
|
||||||
|
|
||||||
attr_reader :container_name,
|
attr_reader :container_name,
|
||||||
:customizations
|
:customizations
|
||||||
|
|
||||||
|
@ -120,12 +123,6 @@ module Vagrant
|
||||||
|
|
||||||
protected
|
protected
|
||||||
|
|
||||||
# Root folder where container configs are stored
|
|
||||||
CONTAINERS_PATH = '/var/lib/lxc'
|
|
||||||
|
|
||||||
def base_path
|
|
||||||
Pathname.new("#{CONTAINERS_PATH}/#{@container_name}")
|
|
||||||
end
|
|
||||||
|
|
||||||
def import_template(path)
|
def import_template(path)
|
||||||
template_name = "vagrant-tmp-#{@container_name}"
|
template_name = "vagrant-tmp-#{@container_name}"
|
||||||
|
|
Loading…
Add table
Reference in a new issue