runtimes

package
v0.7.5 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2017 License: Apache-2.0 Imports: 14 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrInvalidRuntime = errors.New("invalid runtime")

ErrInvalidRuntime means the project's structure is not a valid LeanEngine project

Functions

This section is empty.

Types

type Runtime

type Runtime struct {
	ProjectPath string
	Name        string
	Exec        string
	Args        []string
	WatchFiles  []string
	Envs        []string
	Port        string
	// DeployFiles is the patterns for source code to deploy to the remote server
	DeployFiles filesPattern
	// Errors is the channel that receives the command's error result
	Errors chan error
	// contains filtered or unexported fields
}

Runtime stands for a language runtime

func DetectRuntime

func DetectRuntime(projectPath string) (*Runtime, error)

DetectRuntime returns the project's runtime

func (*Runtime) ArchiveUploadFiles

func (runtime *Runtime) ArchiveUploadFiles(archiveFile string, ignoreFilePath string) error

func (*Runtime) Run

func (runtime *Runtime) Run()

Run the project, and watch file changes

func (*Runtime) Watch

func (runtime *Runtime) Watch(interval time.Duration) error

Watch file changes

Jump to

Keyboard shortcuts

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