From 70cc567c46903bdd4645400a4fcd27cbe8c2fd06 Mon Sep 17 00:00:00 2001 From: Darren Shepherd Date: Sat, 2 May 2015 23:01:09 -0700 Subject: [PATCH] Refactor DownloadLatestBoot2Docker to make it usable by RancherOS Signed-off-by: Darren Shepherd --- utils/b2d.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/utils/b2d.go b/utils/b2d.go index 461cdc022c..366dc65364 100644 --- a/utils/b2d.go +++ b/utils/b2d.go @@ -167,6 +167,10 @@ func (b *B2dUtils) DownloadLatestBoot2Docker() error { return err } + return b.DownloadBoot2Docker(latestReleaseUrl) +} + +func (b *B2dUtils) DownloadBoot2Docker(latestReleaseUrl string) error { log.Infof("Downloading latest boot2docker release to %s...", b.commonIsoPath) if err := b.DownloadISO(b.imgCachePath, b.isoFilename, latestReleaseUrl); err != nil { return err