Adds updater_proc, to simplify the setup of credentials during stub creation

pull/340/head
Tim Emiola 10 years ago
parent 8c750f44f4
commit 03d70c649f
  1. 6
      src/ruby/lib/grpc/auth/signet.rb

@ -56,6 +56,12 @@ module Signet
apply!(a_copy, opts)
a_copy
end
# Returns a reference to the #apply method, suitable for passing as
# a closure
def updater_proc
lambda(&method(:apply))
end
end
end
end

Loading…
Cancel
Save