ruby

package
v0.0.0-...-c2e3bda Latest Latest
Warning

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

Go to latest
Published: May 25, 2024 License: MPL-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package ruby is the build planner for Ruby projects.

Index

Constants

View Source
const (
	// ConfigRubyVersion is the configuration key for the Ruby version.
	ConfigRubyVersion = "ruby.version"
	// ConfigRubyEntry is the configuration key for the Ruby entrypoint file.
	//
	// When this configuration is set, the start command will be `ruby <entrypoint>`.
	ConfigRubyEntry = "ruby.entry"
)
View Source
const DefaultRubyEntrypoint = "main.rb"

DefaultRubyEntrypoint is the default entrypoint of Ruby projects.

View Source
const DefaultRubyVersion = "3.3"

DefaultRubyVersion is the default Ruby version of Zeabur.

Variables

This section is empty.

Functions

func DetermineBuildCmd

func DetermineBuildCmd(framework types.RubyFramework, config plan.ImmutableProjectConfiguration) string

DetermineBuildCmd determines the build command of the Ruby project.

func DetermineRubyFramework

func DetermineRubyFramework(source afero.Fs) types.RubyFramework

DetermineRubyFramework determines the framework of the Ruby project.

func DetermineRubyVersion

func DetermineRubyVersion(source afero.Fs, config plan.ImmutableProjectConfiguration) string

DetermineRubyVersion determines the version of Ruby used in the project.

func DetermineStartCmd

func DetermineStartCmd(framework types.RubyFramework, config plan.ImmutableProjectConfiguration) string

DetermineStartCmd determines the start command of the Ruby project.

func GenerateDockerfile

func GenerateDockerfile(meta types.PlanMeta) (string, error)

GenerateDockerfile generates the Dockerfile for Ruby projects.

func NewIdentifier

func NewIdentifier() plan.Identifier

NewIdentifier returns a new Ruby identifier.

func NewPacker

func NewPacker() packer.Packer

NewPacker returns a new Ruby packer.

Types

This section is empty.

Jump to

Keyboard shortcuts

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