From bdbb118c78b886cfffb1c7558b16551e2a343a75 Mon Sep 17 00:00:00 2001 From: "R. Tyler Croy" Date: Mon, 10 Aug 2015 05:39:19 -0700 Subject: [PATCH] Wire the internal GemInstaller implementation into the public API --- .../jrubygradle/groovygem/GemInstaller.groovy | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/src/main/groovy/com/github/jrubygradle/groovygem/GemInstaller.groovy b/src/main/groovy/com/github/jrubygradle/groovygem/GemInstaller.groovy index 2a06af1..72c6fbe 100644 --- a/src/main/groovy/com/github/jrubygradle/groovygem/GemInstaller.groovy +++ b/src/main/groovy/com/github/jrubygradle/groovygem/GemInstaller.groovy @@ -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 gems + + protected GemInstallerImpl impl GemInstaller(String installDir, String gemPath) { this(installDir, new File(gemPath)) @@ -25,7 +27,10 @@ class GemInstaller { } GemInstaller(String installDir, List gemPaths) { - this.installDirectory = new File(installDir) - this.gems = gemPaths + impl = new GemInstallerImpl(installDir, gemPaths) + } + + void install() { + impl.install() } }