This commit is contained in:
piotrp 2016-03-27 23:54:17 -07:00 committed by Piotr Puszkiewicz
parent 6f37e87a42
commit 0f21184bf6
4 changed files with 8 additions and 8 deletions

View file

@ -10,7 +10,7 @@ namespace Microsoft.DotNet.Cli.Utils
{
public interface IPackagedCommandSpecFactory
{
CommandSpec CreateCommandSpecFromRuntimeAssembly(
CommandSpec CreateCommandSpecFromLibrary(
LockFileTargetLibrary toolLibrary,
string commandName,
IEnumerable<string> commandArguments,

View file

@ -10,7 +10,7 @@ namespace Microsoft.DotNet.Cli.Utils
{
public class PackagedCommandSpecFactory : IPackagedCommandSpecFactory
{
public CommandSpec CreateCommandSpecFromRuntimeAssembly(
public CommandSpec CreateCommandSpecFromLibrary(
LockFileTargetLibrary toolLibrary,
string commandName,
IEnumerable<string> commandArguments,
@ -35,9 +35,9 @@ namespace Microsoft.DotNet.Cli.Utils
return null;
}
var isPortable = DetermineIfPortableApp(commandPath);
var isPortable = IsPortableApp(commandPath);
return CreateCommandSpecWrappingWithCorehostfDll(
return CreateCommandSpecWrappingWithCorehostIfDll(
commandPath,
commandArguments,
depsFilePath,
@ -56,7 +56,7 @@ namespace Microsoft.DotNet.Cli.Utils
return filePath;
}
private CommandSpec CreateCommandSpecWrappingWithCorehostfDll(
private CommandSpec CreateCommandSpecWrappingWithCorehostIfDll(
string commandPath,
IEnumerable<string> commandArguments,
string depsFilePath,
@ -134,7 +134,7 @@ namespace Microsoft.DotNet.Cli.Utils
return new CommandSpec(commandPath, escapedArgs, commandResolutionStrategy);
}
private bool DetermineIfPortableApp(string commandPath)
private bool IsPortableApp(string commandPath)
{
var commandDir = Path.GetDirectoryName(commandPath);

View file

@ -97,7 +97,7 @@ namespace Microsoft.DotNet.Cli.Utils
IEnumerable<string> commandArguments,
ProjectContext projectContext)
{
return _packagedCommandSpecFactory.CreateCommandSpecFromRuntimeAssembly(
return _packagedCommandSpecFactory.CreateCommandSpecFromLibrary(
toolLibrary,
commandName,
commandArguments,

View file

@ -116,7 +116,7 @@ namespace Microsoft.DotNet.Cli.Utils
var depsFileRoot = Path.GetDirectoryName(lockFile.LockFilePath);
var depsFilePath = GetToolDepsFilePath(toolLibraryRange, lockFile, depsFileRoot);
return _packagedCommandSpecFactory.CreateCommandSpecFromRuntimeAssembly(
return _packagedCommandSpecFactory.CreateCommandSpecFromLibrary(
toolLibrary,
commandName,
args,