Refactor DownloadLatestBoot2Docker to make it usable by RancherOS

Signed-off-by: Darren Shepherd <darren@rancher.com>
This commit is contained in:
Darren Shepherd
2015-05-02 23:01:09 -07:00
parent 732ca874b8
commit 70cc567c46

View File

@@ -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