diff --git a/Rakefile b/Rakefile index c3785e7..565cc57 100644 --- a/Rakefile +++ b/Rakefile @@ -4,3 +4,9 @@ task :default => :spec require 'rspec/core/rake_task' RSpec::Core::RakeTask.new(:spec) + +desc 'Generate gRPC codes' +task :grpc do + cd 'lib' + sh 'protoc --ruby_out=. --plugin=protoc-gen-grpc=`which grpc_ruby_plugin` --grpc_out=. kaede/grpc/kaede.proto' +end