Sha256: 89a884c79efa5c974f06465f8db32d3026a3b0d5aa7aaeaf1be0f537b16fcd24

Contents?: true

Size: 265 Bytes

Versions: 2

Compression:

Stored size: 265 Bytes

Contents

# frozen_string_literal: true

require 'functions_framework'

FunctionsFramework.on_startup do
  require_relative 'lib/<%= name %>'
end

FunctionsFramework.http('<%= name %>') do |request|
  <%= name.singularize.classify %>.new(request: request).build_response
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
funkce-0.1.1 lib/funkce/generators/function/app.tt
funkce-0.1.0 lib/funkce/generators/function/app.tt