rubycommand

package
v1.0.6 Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2023 License: MIT Imports: 9 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GemInstall

func GemInstall(gem, version string, enablePrerelease bool) ([]*command.Model, error)

GemInstall ...

func GemUpdate

func GemUpdate(gem string) ([]*command.Model, error)

GemUpdate ...

func IsGemInstalled

func IsGemInstalled(gem, version string) (bool, error)

IsGemInstalled ...

func IsSpecifiedASDFRubyInstalled added in v1.0.4

func IsSpecifiedASDFRubyInstalled(workdir string) (isInstalled bool, versionInstalled string, error error)

IsSpecifiedASDFRubyInstalled checks if the selected ruby version is installed via asdf

func IsSpecifiedRbenvRubyInstalled

func IsSpecifiedRbenvRubyInstalled(workdir string) (bool, string, error)

IsSpecifiedRbenvRubyInstalled checks if the selected ruby version is installed via rbenv. Ruby version is set by 1. The RBENV_VERSION environment variable 2. The first .ruby-version file found by searching the directory of the script you are executing and each of its parent directories until reaching the root of your filesystem. 3.The first .ruby-version file found by searching the current working directory and each of its parent directories until reaching the root of your filesystem. 4. The global ~/.rbenv/version file. You can modify this file using the rbenv global command. src: https://github.com/rbenv/rbenv#choosing-the-ruby-version

func New

func New(name string, args ...string) (*command.Model, error)

New ...

func NewFromSlice

func NewFromSlice(slice []string) (*command.Model, error)

NewFromSlice ...

func NewWithParams

func NewWithParams(params ...string) (*command.Model, error)

NewWithParams ...

Types

type InstallType

type InstallType int8

InstallType ...

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

func RubyInstallType

func RubyInstallType() InstallType

RubyInstallType returns which version manager was used for the ruby install

Jump to

Keyboard shortcuts

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