Documentation
¶
Index ¶
- func GemInstall(gem, version string, enablePrerelease bool) ([]*command.Model, error)
- func GemUpdate(gem string) ([]*command.Model, error)
- func IsGemInstalled(gem, version string) (bool, error)
- func IsSpecifiedASDFRubyInstalled(workdir string) (isInstalled bool, versionInstalled string, error error)
- func IsSpecifiedRbenvRubyInstalled(workdir string) (bool, string, error)
- func New(name string, args ...string) (*command.Model, error)
- func NewFromSlice(slice []string) (*command.Model, error)
- func NewWithParams(params ...string) (*command.Model, error)
- type InstallType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GemInstall ¶
GemInstall ...
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 ¶
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
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