ruby

package
v2.0.0-alpha.35 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2024 License: MIT Imports: 10 Imported by: 10

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CommandFactory

type CommandFactory interface {
	Create(name string, args []string, opts *command.Opts) command.Command
	CreateBundleExec(name string, args []string, bundlerVersion string, opts *command.Opts) command.Command
	CreateBundleInstall(bundlerVersion string, opts *command.Opts) command.Command
	CreateGemInstall(gem, version string, enablePrerelease, force bool, opts *command.Opts) []command.Command
	CreateGemUpdate(gem string, opts *command.Opts) []command.Command
}

CommandFactory ...

func NewCommandFactory

func NewCommandFactory(cmdFactory command.Factory, cmdLocator env.CommandLocator) (CommandFactory, error)

NewCommandFactory ...

type Environment

type Environment interface {
	RubyInstallType() InstallType
	IsGemInstalled(gem, version string) (bool, error)
	IsSpecifiedRbenvRubyInstalled(workdir string) (bool, string, error)
	IsSpecifiedASDFRubyInstalled(workdir string) (bool, string, error)
}

Environment ...

func NewEnvironment

func NewEnvironment(factory CommandFactory, cmdLocator env.CommandLocator, logger log.Logger) Environment

NewEnvironment ...

type InstallType

type InstallType int8

InstallType ...

const (
	// Unknown ...
	Unknown InstallType = iota
	// SystemRuby ...
	SystemRuby
	// BrewRuby ...
	BrewRuby
	// RVMRuby ...
	RVMRuby
	// RbenvRuby ...
	RbenvRuby
	// ASDFRuby ...
	ASDFRuby
)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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