ruby

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2020 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Authors     string
	Email       string
	GemRepoUser string
	GemRepoPass string
	GemRepoHost string
	GemName     string
	GRPCVersion string
	Homepage    string
	Publish     bool
}

type Service

type Service struct {
	// contains filtered or unexported fields
}

Service represents a ruby packaging service. It has properties that are the dependencies necessary for the service to function and receives methods allowing it to build the code directory necessary for publishing a gem. It fulfills the LanguageProcessor interface in package main.

func New

func New(config Config, fs fs, repo repo, logger log.FieldLogger, metrics counters, tracer opentracing.Tracer) *Service

New returns a pointer to a ruby Service configured with the parameters passed in.

func (*Service) Process

func (s *Service) Process(ctx context.Context, payload github.PushPayload)

Process is the main method for use by the main function of the application, and the only one required by the interface in main.go. It takes a context, used for cancelling itself in the case of a sigterm or sigint, and a Push Event payload. It executes all steps necessary for creating jars and publishing them via sbt.

Jump to

Keyboard shortcuts

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