Wire the internal GemInstaller implementation into the public API

This commit is contained in:
R. Tyler Croy 2015-08-10 05:39:19 -07:00
parent 016272f240
commit bdbb118c78
No known key found for this signature in database
GPG Key ID: 1426C7DC3F51E16F
1 changed files with 9 additions and 4 deletions

View File

@ -2,6 +2,8 @@ package com.github.jrubygradle.groovygem
import groovy.transform.CompileStatic
import com.github.jrubygradle.groovygem.internal.GemInstaller as GemInstallerImpl
/**
* GemInstaller manages the installation of a .gem file into a given directory
*/
@ -13,8 +15,8 @@ class GemInstaller {
FAIL
}
protected File installDirectory
protected List<File> gems
protected GemInstallerImpl impl
GemInstaller(String installDir, String gemPath) {
this(installDir, new File(gemPath))
@ -25,7 +27,10 @@ class GemInstaller {
}
GemInstaller(String installDir, List<File> gemPaths) {
this.installDirectory = new File(installDir)
this.gems = gemPaths
impl = new GemInstallerImpl(installDir, gemPaths)
}
void install() {
impl.install()
}
}