rubyapp

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2016 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 added in v0.2.0

func AppFactory() app.App

AppFactory is the factory for this app

func HasGem added in v0.2.0

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 added in v0.2.0

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

func (*App) Meta added in v0.2.0

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