template

package
v0.37.0 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2018 License: MIT Imports: 13 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddService

func AddService(appDir, templateDir string, outputWriter io.Writer) error

AddService (used by exo template test) runs exo-add to add template at templateDir to the app at appDir and returns an error if any

func CreateApplicationTemplateDir

func CreateApplicationTemplateDir() (string, error)

CreateApplicationTemplateDir creates a temporary boilr template directory for the application

func CreateEmptyApp

func CreateEmptyApp(dirPath string) error

CreateEmptyApp (used by exo template test) runs exo-init to create an empty app with the default name "my-app" at dirPath and returns an error if any

func CreateServiceTemplateDir

func CreateServiceTemplateDir(serviceRole string) (string, error)

CreateServiceTemplateDir creates a temporary boilr template directory for the service

func CreateTmpServiceDir

func CreateTmpServiceDir(appDir, chosenTemplate string) (string, error)

CreateTmpServiceDir makes bolir scaffold the template chosenTemplate and store the scaffoled service folder in a tmp folder, and finally returns the path to the tmp folder

func GetTemplates

func GetTemplates(appDir string) (result []string, err error)

GetTemplates returns a slice of all template names found in the ".exosphere/service_templates" folder of the application

func HasTemplatesDir

func HasTemplatesDir(appDir string) (bool, error)

HasTemplatesDir returns whether or not there is an ".exosphere/service_templates" folder

func IsValidTemplateDir

func IsValidTemplateDir(templateDir string) (bool, string, error)

IsValidTemplateDir returns whether or not the template at templateDir is a valid exosphere template, a reason if invalid, and an

func Run

func Run(templateDir, resultDir string) error

Run executes the boilr template from templateDir into resultDir

func RunTests

func RunTests(appDir string, outputWriter io.Writer) error

RunTests (used by exo template test) runs exo-test in appDir and returns whether or not the tests pass and the output of running the tests

Types

This section is empty.

Jump to

Keyboard shortcuts

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