Sha256: 6d438a448d6723ff47b85732fbaa99e047f60112fb0b142677c98fd3612d428f

Contents?: true

Size: 569 Bytes

Versions: 4

Compression:

Stored size: 569 Bytes

Contents

namespace :grpc_stubs do
  desc 'Generate stubs for all .proto files (looking into entire LOAD_PATH)'
  task :generate, [:annotate, :keep_require] do |_, args|
    args.with_defaults annotate: :yes, keep_require: :no
    require_relative '../protobuf_transpiler'
    ProtobufTranspiler.generate_stubs args[:keep_require].to_sym == :yes
    ProtobufTranspiler.annotate_stubs unless args[:annotate].to_sym == :no
  end

  desc 'Annotate generated stubs'
  task :annotate do
    require_relative '../protobuf_transpiler'
    ProtobufTranspiler.annotate_stubs
  end
end



Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
protobuf_transpiler-1.1.2 lib/tasks/grpc_stubs.rake
protobuf_transpiler-1.1.1 lib/tasks/grpc_stubs.rake
protobuf_transpiler-1.1.0 lib/tasks/grpc_stubs.rake
protobuf_transpiler-1.0.0 lib/tasks/grpc_stubs.rake