runner

package module
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2014 License: MIT Imports: 6 Imported by: 3

README

The Project

Formerly known as Bob

Build Status GoDoc Coverage Status

This repo is now the core builder library

Usage

See godocs and _example/

Writing a bobfile.yml

NOTE: for legacy reasons, the default file name is Bobfile

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunBuild

func RunBuild(opts Options, flags ...Flag) (comm.LogChan, comm.EventChan, comm.ExitChan)

RunBuild runs a complete build for the provided unit config. Currently, the channels argument is ignored but will be used in the future along with the LogMsg and StatusMsg interfaces

func RunBuildSynchronously added in v0.2.0

func RunBuildSynchronously(opts Options, flags ...Flag) error

RunBuildSynchronously - run a build, wait for it to finish, log to stdout

Types

type Flag added in v0.2.2

type Flag uint8

Flag is an option type for the RunBuild command

const (
	// KeepTemporaryTag instructs the builder not to delete the random uuid tag
	KeepTemporaryTag Flag = 1 << iota // KeepTemporaryTag == 1 (iota has been reset)

)

type Options added in v0.2.1

type Options struct {
	UnitConfig *unitconfig.UnitConfig
	ContextDir string

	// LogLevel is only used for RunBuildSynchronously, ignored for RunBuild
	// LogLevel defaults to PanicLevel if not set
	LogLevel logrus.Level
}

Options encapsulates the options for RunBuild/RunBuildSynchronously

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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