Skip to content

Commit

Permalink
Fixes #149 - PathResolver should implement an interface to enable moc…
Browse files Browse the repository at this point in the history
…king (#150)
  • Loading branch information
akerekes authored Jul 13, 2016
1 parent 29119d2 commit e28a3e8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,7 @@ public CloudSdk build() {

// Default SDK path
if (sdkPath == null) {
Path discoveredSdkPath = PathResolver.INSTANCE.getCloudSdkPath();
Path discoveredSdkPath = new PathResolver().getCloudSdkPath();
if (discoveredSdkPath == null) {
throw new AppEngineException("Google Cloud SDK path was not provided and could not be"
+ " found in any known install locations.");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,7 @@
/**
* Resolve paths with CloudSdk and Python defaults.
*/
public enum PathResolver {

INSTANCE;
public class PathResolver {

/**
* Attempts to find the path to Google Cloud SDK.
Expand Down

0 comments on commit e28a3e8

Please sign in to comment.