godel

package
v0.0.0-...-64567a0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 17, 2017 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Version = "unspecified"

Functions

func InstallCommand

func InstallCommand() cli.Command

func NewInstall

func NewInstall(dstDirPath, srcPkgPath string, stdout io.Writer) error

NewInstall performs a new installation of gödel in the specified directory using the specified file as the source. Calls "Install" to install the package provided as a parameter. Once the package is installed, the wrapper and settings files are copied from the newly downloaded distribution to the specified path. If there was a previous installation of gödel in the path, it is overwritten by the new file. However, changes in the "var" directory are purely additive -- files that have been added in this directory in the new distribution will be added, but existing files will not be modified or removed.

func Update

func Update(wrapperScriptPath string, stdout io.Writer) error

Update updates gödel. Calls "Install" to download and install the package specified in the "{{properties.Url}}" property of the properties file for the provided gödel wrapper script. Once the package is installed, the provided wrapper file and its directory are overwritten with the files provided by the package that was downloaded. However, changes in the "var" directory are purely additive -- files that have been added in this directory in the new distribution will be added, but existing files will not be modified or removed.

func UpdateCommand

func UpdateCommand() cli.Command

func VersionCommand

func VersionCommand() cli.Command

Types

type PkgSrc

type PkgSrc interface {
	// contains filtered or unexported methods
}

type PkgWithChecksum

type PkgWithChecksum struct {
	Pkg      string
	Checksum string
}

func GetDistPkgInfo

func GetDistPkgInfo(configDir string) (PkgWithChecksum, error)

GetDistPkgInfo returns the distribution URL and checksum (if it exists) from the configuration file in the provided directory. Returns an error if the URL cannot be read.

func (PkgWithChecksum) ToPkgSrc

func (p PkgWithChecksum) ToPkgSrc() PkgSrc

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL