runner

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2019 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TaskRunner

type TaskRunner struct {
	CurrentDirectory string
	// contains filtered or unexported fields
}

TaskRunner runs tasks

func NewTaskRunner

func NewTaskRunner(man *manifest.Manifest, cwd string, writer log.Logger) *TaskRunner

NewTaskRunner creates a new task runner instance

func (*TaskRunner) PluginByName

func (t *TaskRunner) PluginByName(pluginName string) (p plugins.PluginFactory, err error)

PluginByName gets plugin by name

func (*TaskRunner) RunJob

func (t *TaskRunner) RunJob(j manifest.Job, ctx *job.RunContext)

RunJob starts job in separate goroutine.

Use ctx.Error channel to track job result and ctx.Cancel() to cancel it.

func (*TaskRunner) RunTask added in v0.2.0

func (t *TaskRunner) RunTask(taskName string) (err error)

RunTask execute task by name

func (*TaskRunner) Stop added in v0.4.0

func (t *TaskRunner) Stop()

Stop stops task runner

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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