package rubyapp import ( "github.com/hashicorp/otto/app" ) // Tuples is the list of tuples that this built-in app implementation knows // that it can support. var Tuples = app.TupleSlice([]app.Tuple{ {"ruby", "aws", "simple"}, {"ruby", "aws", "vpc-public-private"}, })
package custom import ( "github.com/hashicorp/otto/app" ) // Tuples is the list of tuples that this built-in app implementation knows // that it can support. var Tuples = app.TupleSlice([]app.Tuple{ {"custom", "*", "*"}, })
// AppFactory is the factory for this app func AppFactory() app.App { return &App{} } // Meta is the metadata for this app type var Meta = &app.Meta{ Tuples: Tuples, Detectors: Detectors, } // Tuples is the list of tuples that this built-in app implementation knows // that it can support. var Tuples = app.TupleSlice([]app.Tuple{ {"node-server", "aws", "simple"}, }) // Detectors is the list of detectors that trigger this app to be used. var Detectors = []*detect.Detector{ &detect.Detector{ Type: "node-server", File: []string{"package.json"}, // Slightly lower priority since many web frameworks can contain // a package.json these days while being written in another // language. Priority: -1, }, }
import ( "github.com/hashicorp/otto/app" "github.com/hashicorp/otto/appfile/detect" ) // Meta is the metadata for this app type var Meta = &app.Meta{ Tuples: Tuples, Detectors: Detectors, } // Tuples is the list of tuples that this built-in app implementation knows // that it can support. var Tuples = app.TupleSlice([]app.Tuple{ {"scriptpack", "*", "*"}, }) // Detectors is the list of detectors that trigger this app to be used. var Detectors = []*detect.Detector{ &detect.Detector{ Type: "scriptpack", Contents: map[string]string{ "main.go": `^var ScriptPack =`, }, // High priority for ScriptPacks since it is a very specific // dev environment type. Priority: 10, }, }
package dockerext import ( "github.com/hashicorp/otto/app" "github.com/hashicorp/otto/appfile/detect" ) // AppFactory is the factory for this app func AppFactory() app.App { return &App{} } // Meta is the metadata for this app type var Meta = &app.Meta{ Tuples: Tuples, Detectors: Detectors, } // Tuples is the list of tuples that this built-in app implementation knows // that it can support. var Tuples = app.TupleSlice([]app.Tuple{ {"docker-external", "*", "*"}, }) // Detectors is the list of detectors that trigger this app to be used. var Detectors = []*detect.Detector{}
import ( "github.com/hashicorp/otto/app" "github.com/hashicorp/otto/appfile/detect" ) // AppFactory is the factory for this app func AppFactory() app.App { return &App{} } // Meta is the metadata for this app type var Meta = &app.Meta{ Tuples: Tuples, Detectors: Detectors, } // Tuples is the list of tuples that this built-in app implementation knows // that it can support. var Tuples = app.TupleSlice([]app.Tuple{ {"java", "*", "*"}, }) // Detectors is the list of detectors that trigger this app to be used. var Detectors = []*detect.Detector{ &detect.Detector{ Type: "java", File: []string{"build.gradle", "pom.xml"}, }, }
package custom import ( "github.com/hashicorp/otto/app" ) // Tuples is the list of tuples that this built-in app implementation knows // that it can support. var Tuples = app.TupleSlice([]app.Tuple{ {"custom", "*", "*"}, {"custom", "digitalocean", "coreos-cluster"}, })
import ( "github.com/hashicorp/otto/app" "github.com/hashicorp/otto/appfile/detect" ) // AppFactory is the factory for this app func AppFactory() app.App { return &App{} } // Meta is the metadata for this app type var Meta = &app.Meta{ Tuples: Tuples, Detectors: Detectors, } // Tuples is the list of tuples that this built-in app implementation knows // that it can support. var Tuples = app.TupleSlice([]app.Tuple{ {"php", "*", "*"}, }) // Detectors is the list of detectors that trigger this app to be used. var Detectors = []*detect.Detector{ &detect.Detector{ Type: "php", File: []string{"*.php", "composer.json"}, }, }
// AppFactory is the factory for this app func AppFactory() app.App { return &App{} } // Meta is the metadata for this app type var Meta = &app.Meta{ Tuples: Tuples, Detectors: Detectors, } // Tuples is the list of tuples that this built-in app implementation knows // that it can support. var Tuples = app.TupleSlice([]app.Tuple{ {"php", "*", "*"}, {"wordpress", "*", "*"}, }) // Detectors is the list of detectors that trigger this app to be used. var Detectors = []*detect.Detector{ &detect.Detector{ Type: "wordpress", File: []string{"wp-config.php", "wp-config-sample.php"}, }, &detect.Detector{ Type: "php", File: []string{"*.php", "composer.json"}, }, }