compile

package
v0.8.6 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2023 License: MIT Imports: 27 Imported by: 0

Documentation

Overview

Package compile provides ruby compilation plugin

Index

Constants

This section is empty.

Variables

View Source
var (

	// OSXDependencies is a list of OSX system dependencies
	OSXDependencies = []string{
		"openssl", "libyaml", "automake",
	}

	// XCodeDependencies is a list of XCode dependencies
	XCodeDependencies = []string{
		"xcrun", "make", "gcc",
	}
)
View Source
var (

	// LinuxDependencies is a list of all linux system dependencies
	LinuxDependencies = []string{
		"make", "autoconf", "gcc-6",
		"bison", "build-essential", "libssl-dev",
		"libyaml-dev", "libreadline6-dev", "zlib1g-dev",
		"libncurses5-dev", "libffi-dev", "libgdbm3",
		"libgdbm-dev",
	}
)
View Source
var (
	// VersionLink is the URL link from which we can get all possible versions
	VersionLink = "https://cache.ruby-lang.org/pub/ruby"
)

Functions

This section is empty.

Types

type Ruby

type Ruby struct {
	base.Ruby
	Version string
	Emitter *emission.Emitter
	// contains filtered or unexported fields
}

Ruby compile essential struct

func New

func New(version string, emitter *emission.Emitter) *Ruby

New returns language struct

func (Ruby) Events

func (ruby Ruby) Events() *emission.Emitter

Events returns language related event emitter

func (Ruby) Info

func (ruby Ruby) Info() map[string]string

Info provides all the info needed for installation of the plugin

func (Ruby) Install

func (ruby Ruby) Install() (err error)

Install hook

func (Ruby) ListRemote

func (ruby Ruby) ListRemote() ([]string, error)

ListRemote returns list of the all available remote versions

func (Ruby) PostInstall

func (ruby Ruby) PostInstall() (err error)

PostInstall hook

func (Ruby) PreInstall

func (ruby Ruby) PreInstall() (err error)

PreInstall hook

func (Ruby) Rollback

func (ruby Ruby) Rollback() (err error)

Rollback hook

Jump to

Keyboard shortcuts

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