Skip to content

Commit

Permalink
release: add Rack application skeleton of webhook auto signer
Browse files Browse the repository at this point in the history
GitHub: groongaGH-43

In this PR, we set up a rack application skeleton of webhook auto
signer. At the following PRs, we will implement the logic.
  • Loading branch information
otegami committed Dec 10, 2024
1 parent c704067 commit e8a3a3b
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 0 deletions.
1 change: 1 addition & 0 deletions ansible/files/home/signer/webhook/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/Gemfile.lock
3 changes: 3 additions & 0 deletions ansible/files/home/signer/webhook/Gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
source "https://rubygems.org"

gem "rack"
10 changes: 10 additions & 0 deletions ansible/files/home/signer/webhook/config.ru
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
require "pathname"

base_dir = Pathname(__FILE__).dirname
lib_dir = base_dir + "lib"

$LOAD_PATH.unshift(lib_dir.to_s)

require "webhook-signer"

run WebhookSigner::App.new
1 change: 1 addition & 0 deletions ansible/files/home/signer/webhook/lib/webhook-signer.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
require "webhook-signer/app"
7 changes: 7 additions & 0 deletions ansible/files/home/signer/webhook/lib/webhook-signer/app.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
module WebhookSigner
class App
def call(env)
[200, {}, ["Hello Webhook Signer"]]
end
end
end

0 comments on commit e8a3a3b

Please sign in to comment.