Cleanup style
This commit is contained in:
parent
ca3cb385d4
commit
13d4899d16
|
@ -74,7 +74,7 @@ module VagrantPlugins
|
||||||
|
|
||||||
# Create the parent directories if they does not exist (naive mkdir -p)
|
# Create the parent directories if they does not exist (naive mkdir -p)
|
||||||
fullpath.descend do |path|
|
fullpath.descend do |path|
|
||||||
unless check_dir_exists? path.to_s
|
if !directory_exists?(path.to_s)
|
||||||
@server.mkdir(path.to_s)
|
@server.mkdir(path.to_s)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
@ -83,7 +83,7 @@ module VagrantPlugins
|
||||||
@server.putbinaryfile(local, remote)
|
@server.putbinaryfile(local, remote)
|
||||||
end
|
end
|
||||||
|
|
||||||
def check_dir_exists?(path)
|
def directory_exists?(path)
|
||||||
begin
|
begin
|
||||||
@server.chdir(path)
|
@server.chdir(path)
|
||||||
return true
|
return true
|
||||||
|
|
Loading…
Reference in New Issue