Skip to main content

teraslice-cli / helpers/github-asset / default

Class: default

Constructors

new default()

new default(config): default

Parameters

ParameterType
configGithubAssetConfig

Returns

default

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

ParameterTypeDefault value
outDirstring'/tmp'
quietbooleanfalse

Returns

Promise<string>

Source

teraslice-cli/src/helpers/github-asset.ts:33


parseAssetString()

static parseAssetString(assetString): object

Parameters

ParameterType
assetStringstring

Returns

object

name

name: string

user

user: string

version

version: undefined | string

Source

teraslice-cli/src/helpers/github-asset.ts:97