Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 903543f

Browse filesBrowse files
committed
Initial commit for Ruby layer example
1 parent 227a6c0 commit 903543f
Copy full SHA for 903543f

File tree

Expand file treeCollapse file tree

4 files changed

+19
-0
lines changed
Filter options
Expand file treeCollapse file tree

4 files changed

+19
-0
lines changed
+8Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
require 'json'
2+
require 'tzinfo'
3+
4+
def lambda_handler(event:, context:)
5+
tz = TZInfo::Timezone.get('America/New_York')
6+
{ statusCode: 200, body: tz.to_local(Time.utc(2018, 2, 1, 12, 30, 0)) }
7+
end
8+
+3Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
bundle config set --local path 'vendor/bundle'
2+
bundle install
3+
+3Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
mkdir -p ruby/gems/3.3.0
2+
cp -r vendor/bundle/ruby/3.3.0/* ruby/gems/3.3.0/
3+
zip -r layer_content.zip ruby

‎sample-apps/layer-ruby/layer/Gemfile

Copy file name to clipboard
+5Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# frozen_string_literal: true
2+
3+
source "https://rubygems.org"
4+
5+
gem "tzinfo"

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.