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 )
Click to show internal directories.
Click to hide internal directories.