github.com/bhameyie/otto@v0.2.1-0.20160406174117-16052efa52ec/builtin/app/ruby/meta.go (about)

     1  package rubyapp
     2  
     3  import (
     4  	"github.com/hashicorp/otto/app"
     5  	"github.com/hashicorp/otto/appfile/detect"
     6  )
     7  
     8  // AppFactory is the factory for this app
     9  func AppFactory() app.App {
    10  	return &App{}
    11  }
    12  
    13  // Meta is the metadata for this app type
    14  var Meta = &app.Meta{
    15  	Tuples:    Tuples,
    16  	Detectors: Detectors,
    17  }
    18  
    19  // Tuples is the list of tuples that this built-in app implementation knows
    20  // that it can support.
    21  var Tuples = app.TupleSlice([]app.Tuple{
    22  	{"rails", "aws", "simple"},
    23  	{"ruby", "aws", "simple"},
    24  	{"ruby", "aws", "vpc-public-private"},
    25  })
    26  
    27  // Detectors is the list of detectors that trigger this app to be used.
    28  var Detectors = []*detect.Detector{
    29  	&detect.Detector{
    30  		Type: "rails",
    31  		File: []string{"config/application.rb"},
    32  	},
    33  	&detect.Detector{
    34  		Type: "ruby",
    35  		File: []string{"*.rb", "Gemfile", "config.ru"},
    36  	},
    37  }