Documentation
¶
Index ¶
- Variables
- func BundleExecPrefix(bundlerVersion Version) []string
- func BundleInstallCommand(gemfileLockVersion Version) (*command.Model, error)
- func GemFileLockContent(searchDir string) (string, error)
- func GemFileLockPth(searchDir string) (string, error)
- func InstallBundlerCommand(gemfileLockVersion Version) *command.Model
- func RbenvVersionsCommand() *command.Model
- type Version
Constants ¶
This section is empty.
Variables ¶
var ( // ErrGemLockNotFound is thrown when the gem file is not found. ErrGemLockNotFound = errors.New("gem lock file not found") )
Functions ¶
func BundleExecPrefix ¶
BundleExecPrefix returns a slice containing: "bundle [_verson_] exec"
func BundleInstallCommand ¶
BundleInstallCommand returns a command to install a bundle using bundler
func GemFileLockContent ¶
GemFileLockContent gets the content of the gem lock file from the given directory.
func GemFileLockPth ¶
GemFileLockPth gets the path for the gem lock file from the given directory.
func InstallBundlerCommand ¶
InstallBundlerCommand returns a command to install a specific bundler version
func RbenvVersionsCommand ¶
RbenvVersionsCommand retruns a command to print used and available ruby versions if rbenv is installed
Types ¶
type Version ¶
Version contains a gem version
func ParseBundlerVersion ¶
ParseBundlerVersion returns the bundler version used to create the bundle
func ParseVersionFromBundle ¶
func ParseVersionFromBundle(gemName string, gemfileLockContent string) (gemVersion Version, err error)
ParseVersionFromBundle returns the specified gem version parsed from a Gemfile.lock on a best effort basis, for logging purposes only.
for "fastlane" and the following Gemfile.lock example, it returns: ">= 2.0)"
specs:
CFPropertyList (3.0.0)
addressable (2.6.0)
public_suffix (>= 2.0.2, < 4.0)
atomos (0.1.3)
babosa (1.0.2)
badge (0.8.5)
curb (~> 0.9)
fastimage (>= 1.6)
fastlane (>= 2.0)
mini_magick (>= 4.5)
claide (1.0.2)