teraslice-cli / helpers/github-asset / default
Class: default
Constructors
new default()
new default(
config
):default
Parameters
Parameter | Type |
---|---|
config | GithubAssetConfig |
Returns
Source
teraslice-cli/src/helpers/github-asset.ts:16
Properties
arch
arch:
string
Source
teraslice-cli/src/helpers/github-asset.ts:7
assetString
assetString:
string
Source
teraslice-cli/src/helpers/github-asset.ts:8
bundle
bundle:
boolean
Source
teraslice-cli/src/helpers/github-asset.ts:14
name
name:
string
Source
teraslice-cli/src/helpers/github-asset.ts:12
nodeVersion
nodeVersion:
string
Source
teraslice-cli/src/helpers/github-asset.ts:9
platform
platform:
string
Source
teraslice-cli/src/helpers/github-asset.ts:10
user
user:
string
Source
teraslice-cli/src/helpers/github-asset.ts:11
version?
optional
version:string
Source
teraslice-cli/src/helpers/github-asset.ts:13
Accessors
nodeMajorVersion
get
nodeMajorVersion():string
Returns
string
Source
teraslice-cli/src/helpers/github-asset.ts:29
Methods
download()
download(
outDir
,quiet
):Promise
<string
>
Parameters
Parameter | Type | Default value |
---|---|---|
outDir | string | '/tmp' |
quiet | boolean | false |
Returns
Promise
<string
>
Source
teraslice-cli/src/helpers/github-asset.ts:33
parseAssetString()
static
parseAssetString(assetString
):object
Parameters
Parameter | Type |
---|---|
assetString | string |
Returns
object
name
name:
string
user
user:
string
version
version:
undefined
|string