Skip to content

Commit 3b73bfa

Browse files
Implement lambda
1 parent 28a70f0 commit 3b73bfa

File tree

7 files changed

+548
-0
lines changed

7 files changed

+548
-0
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,3 +30,6 @@ profile/benchmarking/data
3030
secrets-export.sh
3131
secrets-expansion.yml
3232
atlas-expansion.yml
33+
# AWS SAM-generated files
34+
spec/faas/ruby-sam-app/.aws-sam
35+
spec/faas/ruby-sam-app/events/event.json

spec/faas/ruby-sam-app/.gitignore

Lines changed: 345 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,345 @@
1+
2+
# Created by https://www.toptal.com/developers/gitignore/api/osx,linux,python,windows,pycharm,visualstudiocode,sam
3+
# Edit at https://www.toptal.com/developers/gitignore?templates=osx,linux,python,windows,pycharm,visualstudiocode,sam
4+
5+
### Linux ###
6+
*~
7+
8+
# temporary files which can be created if a process still has a handle open of a deleted file
9+
.fuse_hidden*
10+
11+
# KDE directory preferences
12+
.directory
13+
14+
# Linux trash folder which might appear on any partition or disk
15+
.Trash-*
16+
17+
# .nfs files are created when an open file is removed but is still being accessed
18+
.nfs*
19+
20+
### OSX ###
21+
# General
22+
.DS_Store
23+
.AppleDouble
24+
.LSOverride
25+
26+
# Icon must end with two \r
27+
Icon
28+
29+
# Thumbnails
30+
._*
31+
32+
# Files that might appear in the root of a volume
33+
.DocumentRevisions-V100
34+
.fseventsd
35+
.Spotlight-V100
36+
.TemporaryItems
37+
.Trashes
38+
.VolumeIcon.icns
39+
.com.apple.timemachine.donotpresent
40+
41+
# Directories potentially created on remote AFP share
42+
.AppleDB
43+
.AppleDesktop
44+
Network Trash Folder
45+
Temporary Items
46+
.apdisk
47+
48+
### PyCharm ###
49+
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio, WebStorm and Rider
50+
# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839
51+
52+
# User-specific stuff
53+
.idea/**/workspace.xml
54+
.idea/**/tasks.xml
55+
.idea/**/usage.statistics.xml
56+
.idea/**/dictionaries
57+
.idea/**/shelf
58+
59+
# Generated files
60+
.idea/**/contentModel.xml
61+
62+
# Sensitive or high-churn files
63+
.idea/**/dataSources/
64+
.idea/**/dataSources.ids
65+
.idea/**/dataSources.local.xml
66+
.idea/**/sqlDataSources.xml
67+
.idea/**/dynamic.xml
68+
.idea/**/uiDesigner.xml
69+
.idea/**/dbnavigator.xml
70+
71+
# Gradle
72+
.idea/**/gradle.xml
73+
.idea/**/libraries
74+
75+
# Gradle and Maven with auto-import
76+
# When using Gradle or Maven with auto-import, you should exclude module files,
77+
# since they will be recreated, and may cause churn. Uncomment if using
78+
# auto-import.
79+
# .idea/artifacts
80+
# .idea/compiler.xml
81+
# .idea/jarRepositories.xml
82+
# .idea/modules.xml
83+
# .idea/*.iml
84+
# .idea/modules
85+
# *.iml
86+
# *.ipr
87+
88+
# CMake
89+
cmake-build-*/
90+
91+
# Mongo Explorer plugin
92+
.idea/**/mongoSettings.xml
93+
94+
# File-based project format
95+
*.iws
96+
97+
# IntelliJ
98+
out/
99+
100+
# mpeltonen/sbt-idea plugin
101+
.idea_modules/
102+
103+
# JIRA plugin
104+
atlassian-ide-plugin.xml
105+
106+
# Cursive Clojure plugin
107+
.idea/replstate.xml
108+
109+
# Crashlytics plugin (for Android Studio and IntelliJ)
110+
com_crashlytics_export_strings.xml
111+
crashlytics.properties
112+
crashlytics-build.properties
113+
fabric.properties
114+
115+
# Editor-based Rest Client
116+
.idea/httpRequests
117+
118+
# Android studio 3.1+ serialized cache file
119+
.idea/caches/build_file_checksums.ser
120+
121+
### PyCharm Patch ###
122+
# Comment Reason: https://github.com/joeblau/gitignore.io/issues/186#issuecomment-215987721
123+
124+
# *.iml
125+
# modules.xml
126+
# .idea/misc.xml
127+
# *.ipr
128+
129+
# Sonarlint plugin
130+
# https://plugins.jetbrains.com/plugin/7973-sonarlint
131+
.idea/**/sonarlint/
132+
133+
# SonarQube Plugin
134+
# https://plugins.jetbrains.com/plugin/7238-sonarqube-community-plugin
135+
.idea/**/sonarIssues.xml
136+
137+
# Markdown Navigator plugin
138+
# https://plugins.jetbrains.com/plugin/7896-markdown-navigator-enhanced
139+
.idea/**/markdown-navigator.xml
140+
.idea/**/markdown-navigator-enh.xml
141+
.idea/**/markdown-navigator/
142+
143+
# Cache file creation bug
144+
# See https://youtrack.jetbrains.com/issue/JBR-2257
145+
.idea/$CACHE_FILE$
146+
147+
# CodeStream plugin
148+
# https://plugins.jetbrains.com/plugin/12206-codestream
149+
.idea/codestream.xml
150+
151+
### Python ###
152+
# Byte-compiled / optimized / DLL files
153+
__pycache__/
154+
*.py[cod]
155+
*$py.class
156+
157+
# C extensions
158+
*.so
159+
160+
# Distribution / packaging
161+
.Python
162+
build/
163+
develop-eggs/
164+
dist/
165+
downloads/
166+
eggs/
167+
.eggs/
168+
parts/
169+
sdist/
170+
var/
171+
wheels/
172+
pip-wheel-metadata/
173+
share/python-wheels/
174+
*.egg-info/
175+
.installed.cfg
176+
*.egg
177+
MANIFEST
178+
179+
# PyInstaller
180+
# Usually these files are written by a python script from a template
181+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
182+
*.manifest
183+
*.spec
184+
185+
# Installer logs
186+
pip-log.txt
187+
pip-delete-this-directory.txt
188+
189+
# Unit test / coverage reports
190+
htmlcov/
191+
.tox/
192+
.nox/
193+
.coverage
194+
.coverage.*
195+
.cache
196+
nosetests.xml
197+
coverage.xml
198+
*.cover
199+
*.py,cover
200+
.hypothesis/
201+
.pytest_cache/
202+
pytestdebug.log
203+
204+
# Translations
205+
*.mo
206+
*.pot
207+
208+
# Django stuff:
209+
*.log
210+
local_settings.py
211+
db.sqlite3
212+
db.sqlite3-journal
213+
214+
# Flask stuff:
215+
instance/
216+
.webassets-cache
217+
218+
# Scrapy stuff:
219+
.scrapy
220+
221+
# Sphinx documentation
222+
docs/_build/
223+
doc/_build/
224+
225+
# PyBuilder
226+
target/
227+
228+
# Jupyter Notebook
229+
.ipynb_checkpoints
230+
231+
# IPython
232+
profile_default/
233+
ipython_config.py
234+
235+
# pyenv
236+
.python-version
237+
238+
# pipenv
239+
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
240+
# However, in case of collaboration, if having platform-specific dependencies or dependencies
241+
# having no cross-platform support, pipenv may install dependencies that don't work, or not
242+
# install all needed dependencies.
243+
#Pipfile.lock
244+
245+
# poetry
246+
#poetry.lock
247+
248+
# PEP 582; used by e.g. github.com/David-OConnor/pyflow
249+
__pypackages__/
250+
251+
# Celery stuff
252+
celerybeat-schedule
253+
celerybeat.pid
254+
255+
# SageMath parsed files
256+
*.sage.py
257+
258+
# Environments
259+
# .env
260+
.env/
261+
.venv/
262+
env/
263+
venv/
264+
ENV/
265+
env.bak/
266+
venv.bak/
267+
pythonenv*
268+
269+
# Spyder project settings
270+
.spyderproject
271+
.spyproject
272+
273+
# Rope project settings
274+
.ropeproject
275+
276+
# mkdocs documentation
277+
/site
278+
279+
# mypy
280+
.mypy_cache/
281+
.dmypy.json
282+
dmypy.json
283+
284+
# Pyre type checker
285+
.pyre/
286+
287+
# pytype static type analyzer
288+
.pytype/
289+
290+
# operating system-related files
291+
# file properties cache/storage on macOS
292+
*.DS_Store
293+
# thumbnail cache on Windows
294+
Thumbs.db
295+
296+
# profiling data
297+
.prof
298+
299+
300+
### SAM ###
301+
# Ignore build directories for the AWS Serverless Application Model (SAM)
302+
# Info: https://aws.amazon.com/serverless/sam/
303+
# Docs: https://docs.aws.amazon.com/serverless-application-model/latest/developerguide/serverless-sam-reference.html
304+
305+
**/.aws-sam
306+
307+
### VisualStudioCode ###
308+
.vscode/*
309+
!.vscode/settings.json
310+
!.vscode/tasks.json
311+
!.vscode/launch.json
312+
!.vscode/extensions.json
313+
*.code-workspace
314+
315+
### VisualStudioCode Patch ###
316+
# Ignore all local history of files
317+
.history
318+
.ionide
319+
320+
### Windows ###
321+
# Windows thumbnail cache files
322+
Thumbs.db:encryptable
323+
ehthumbs.db
324+
ehthumbs_vista.db
325+
326+
# Dump file
327+
*.stackdump
328+
329+
# Folder config file
330+
[Dd]esktop.ini
331+
332+
# Recycle Bin used on file shares
333+
$RECYCLE.BIN/
334+
335+
# Windows Installer files
336+
*.cab
337+
*.msi
338+
*.msix
339+
*.msm
340+
*.msp
341+
342+
# Windows shortcuts
343+
*.lnk
344+
345+
# End of https://www.toptal.com/developers/gitignore/api/osx,linux,python,windows,pycharm,visualstudiocode,sam

spec/faas/ruby-sam-app/Gemfile

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
source "https://rubygems.org"
2+
3+
gem "httparty"
4+
gem "mongo"
5+
6+
group :test do
7+
gem "test-unit"
8+
gem "mocha"
9+
end
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
source "https://rubygems.org"
2+
3+
gem "httparty"
4+
gem "mongo"
5+
6+
ruby '~> 3.2.0'

0 commit comments

Comments
 (0)