rubyapp

package
v0.0.0-...-5199348 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2020 License: MPL-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Detectors = []*detect.Detector{
	&detect.Detector{
		Type: "rails",
		File: []string{"config/application.rb"},
	},
	&detect.Detector{
		Type: "ruby",
		File: []string{"*.rb", "Gemfile", "config.ru"},
	},
}

Detectors is the list of detectors that trigger this app to be used.

View Source
var Meta = &app.Meta{
	Tuples:    Tuples,
	Detectors: Detectors,
}

Meta is the metadata for this app type

View Source
var Tuples = app.TupleSlice([]app.Tuple{
	{"rails", "aws", "simple"},
	{"ruby", "aws", "simple"},
	{"ruby", "aws", "vpc-public-private"},
})

Tuples is the list of tuples that this built-in app implementation knows that it can support.

Functions

func AppFactory

func AppFactory() app.App

AppFactory is the factory for this app

func HasGem

func HasGem(dir, name string) (bool, error)

HasGem checks if the Ruby project in the given directory has the specified gem. This uses Gemfile and Gemfile.lock to find this gem.

If no Gemfile is in the directory, false is always returned.

Types

type App

type App struct{}

App is an implementation of app.App

func (*App) Build

func (a *App) Build(ctx *app.Context) error

func (*App) Compile

func (a *App) Compile(ctx *app.Context) (*app.CompileResult, error)

func (*App) Deploy

func (a *App) Deploy(ctx *app.Context) error

func (*App) Dev

func (a *App) Dev(ctx *app.Context) error

func (*App) DevDep

func (a *App) DevDep(dst, src *app.Context) (*app.DevDep, error)

func (*App) Implicit

func (a *App) Implicit(ctx *app.Context) (*appfile.File, error)

func (*App) Meta

func (a *App) Meta() (*app.Meta, error)

Jump to

Keyboard shortcuts

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