Class FunctionCoreToolsHandlerImpl
- java.lang.Object
-
- com.microsoft.azure.toolkit.lib.legacy.function.handlers.FunctionCoreToolsHandlerImpl
-
- All Implemented Interfaces:
FunctionCoreToolsHandler
public class FunctionCoreToolsHandlerImpl extends Object implements FunctionCoreToolsHandler
-
-
Field Summary
Fields Modifier and Type Field Description static StringCANNOT_AUTO_INSTALLprivate CommandHandlercommandHandlerstatic StringFUNC_EXTENSIONS_INSTALL_TEMPLATEstatic StringGET_LATEST_VERSION_CMDstatic StringGET_LATEST_VERSION_FAILstatic StringGET_LOCAL_VERSION_CMDstatic StringGET_LOCAL_VERSION_FAILstatic StringINSTALL_FUNCTION_EXTENSIONS_FAILstatic com.github.zafarkhaja.semver.VersionLEAST_SUPPORTED_VERSIONstatic StringNEED_UPDATE_FUNCTION_CORE_TOOLS
-
Constructor Summary
Constructors Constructor Description FunctionCoreToolsHandlerImpl(CommandHandler commandHandler)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidassureRequirementAddressed()protected StringgetLatestFunctionCoreToolsVersion()protected StringgetLocalFunctionCoreToolsVersion()voidinstallExtension(File stagingDirectory, File basedir)protected voidinstallFunctionExtension(File stagingDirector, File basedir)
-
-
-
Field Detail
-
FUNC_EXTENSIONS_INSTALL_TEMPLATE
public static final String FUNC_EXTENSIONS_INSTALL_TEMPLATE
- See Also:
- Constant Field Values
-
INSTALL_FUNCTION_EXTENSIONS_FAIL
public static final String INSTALL_FUNCTION_EXTENSIONS_FAIL
- See Also:
- Constant Field Values
-
CANNOT_AUTO_INSTALL
public static final String CANNOT_AUTO_INSTALL
- See Also:
- Constant Field Values
-
NEED_UPDATE_FUNCTION_CORE_TOOLS
public static final String NEED_UPDATE_FUNCTION_CORE_TOOLS
- See Also:
- Constant Field Values
-
GET_LATEST_VERSION_CMD
public static final String GET_LATEST_VERSION_CMD
- See Also:
- Constant Field Values
-
GET_LATEST_VERSION_FAIL
public static final String GET_LATEST_VERSION_FAIL
- See Also:
- Constant Field Values
-
GET_LOCAL_VERSION_CMD
public static final String GET_LOCAL_VERSION_CMD
- See Also:
- Constant Field Values
-
GET_LOCAL_VERSION_FAIL
public static final String GET_LOCAL_VERSION_FAIL
- See Also:
- Constant Field Values
-
LEAST_SUPPORTED_VERSION
public static final com.github.zafarkhaja.semver.Version LEAST_SUPPORTED_VERSION
-
commandHandler
private final CommandHandler commandHandler
-
-
Constructor Detail
-
FunctionCoreToolsHandlerImpl
public FunctionCoreToolsHandlerImpl(CommandHandler commandHandler)
-
-
Method Detail
-
installExtension
public void installExtension(File stagingDirectory, File basedir) throws com.microsoft.azure.toolkit.lib.common.exception.AzureExecutionException
- Specified by:
installExtensionin interfaceFunctionCoreToolsHandler- Throws:
com.microsoft.azure.toolkit.lib.common.exception.AzureExecutionException
-
installFunctionExtension
protected void installFunctionExtension(File stagingDirector, File basedir) throws com.microsoft.azure.toolkit.lib.common.exception.AzureExecutionException
- Throws:
com.microsoft.azure.toolkit.lib.common.exception.AzureExecutionException
-
assureRequirementAddressed
protected void assureRequirementAddressed() throws com.microsoft.azure.toolkit.lib.common.exception.AzureExecutionException- Throws:
com.microsoft.azure.toolkit.lib.common.exception.AzureExecutionException
-
getLatestFunctionCoreToolsVersion
protected String getLatestFunctionCoreToolsVersion()
-
getLocalFunctionCoreToolsVersion
protected String getLocalFunctionCoreToolsVersion()
-
-