in lib/google/serverless/exec.rb [720:734]
def copy_entrypoint secret
base_dir = ::File.dirname ::File.dirname ::File.dirname __dir__
entrypoint_template = ::File.join base_dir, "data", "exec_standard_entrypoint.rb.erb"
entrypoint_file = "appengine_exec_entrypoint_#{@timestamp_suffix}.rb"
erb = ::ERB.new ::File.read entrypoint_template
data = {
secret: secret.inspect, command: command.inspect
}
result = erb.result_with_hash data
::File.open entrypoint_file, "w" do |file|
file.write result
end
entrypoint_file
end