Skip to content

Commit

Permalink
Add ruby generated output
Browse files Browse the repository at this point in the history
  • Loading branch information
agbpatro committed Nov 27, 2023
1 parent 2d0f1e4 commit 9b893b4
Show file tree
Hide file tree
Showing 5 changed files with 183 additions and 3 deletions.
12 changes: 9 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ endif
INTEGRATION_TEST_ROOT = ./test/integration
UNIT_TEST_PACKAGES = $(shell go list ./... | grep -v $(INTEGRATION_TEST_ROOT))

PROTO_DIR = protos
PROTO_FILES = $(wildcard $(PROTO_DIR)/*.proto)

build:
go build $(GO_FLAGS) -v -o $(GOPATH)/bin/fleet-telemetry cmd/main.go
@echo "** build complete: $(GOPATH)/bin/fleet-telemetry **"
Expand Down Expand Up @@ -58,12 +61,15 @@ generate-certs:
go run tools/main.go

generate-golang:
protoc --go_out=./ --go_opt=paths=source_relative protos/*.proto
protoc --go_out=./ --go_opt=paths=source_relative $(PROTO_DIR)/*.proto

generate-python:
protoc -I=protos --python_out=protos/python/ protos/*.proto
protoc -I=$(PROTO_DIR) --python_out=$(PROTO_DIR)/python/ $(PROTO_DIR)/*.proto

generate-ruby:
protoc --ruby_out=$(PROTO_DIR)/ruby/ --proto_path=$(PROTO_DIR) $(PROTO_FILES)

generate-protos: generate-golang generate-python
generate-protos: generate-golang generate-python generate-ruby

image-gen:
docker build -t $(ALPHA_IMAGE_NAME) .
Expand Down
43 changes: 43 additions & 0 deletions protos/ruby/vehicle_alert_pb.rb

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

47 changes: 47 additions & 0 deletions protos/ruby/vehicle_data_pb.rb

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

42 changes: 42 additions & 0 deletions protos/ruby/vehicle_error_pb.rb

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

42 changes: 42 additions & 0 deletions protos/ruby/vehicle_metric_pb.rb

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 9b893b4

Please sign in to comment.