Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
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.