installer

package
v0.11.0-rc1 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2018 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FindSource

func FindSource(location string, home draftpath.Home) (installer.Installer, error)

FindSource determines the correct Installer for the given source.

func Install

func Install(i installer.Installer) error

Install installs a pack repo to $DRAFT_HOME

func New

func New(source, version string, home draftpath.Home) (installer.Installer, error)

New determines and returns the correct Installer for the given source

func Update

func Update(i installer.Installer) error

Update updates a pack repo in $DRAFT_HOME.

Types

type LocalInstaller

type LocalInstaller struct {
	// contains filtered or unexported fields
}

LocalInstaller installs pack repos from the filesystem

func NewLocalInstaller

func NewLocalInstaller(source string, home draftpath.Home) (*LocalInstaller, error)

NewLocalInstaller creates a new LocalInstaller

func (*LocalInstaller) Install

func (i *LocalInstaller) Install() error

Install creates a symlink to the pack repo directory in $DRAFT_HOME

func (*LocalInstaller) Path

func (i *LocalInstaller) Path() string

Path is where the pack repo will be symlinked to.

func (*LocalInstaller) Update

func (i *LocalInstaller) Update() error

Update updates a local repository

type VCSInstaller

type VCSInstaller struct {
	Repo    vcs.Repo
	Version string
	// contains filtered or unexported fields
}

VCSInstaller installs packs from a remote repository

func NewVCSInstaller

func NewVCSInstaller(source, version string, home draftpath.Home) (*VCSInstaller, error)

NewVCSInstaller creates a new VCSInstaller.

func (*VCSInstaller) Install

func (i *VCSInstaller) Install() error

Install clones a remote repository and creates a symlink to the pack repo directory in DRAFT_HOME

Implements Installer

func (*VCSInstaller) Path

func (i *VCSInstaller) Path() string

Path is where the pack repo will be symlinked to.

func (*VCSInstaller) Update

func (i *VCSInstaller) Update() error

Update updates a remote repository

Jump to

Keyboard shortcuts

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