README.md in jets_gem_layer-1.0.3 vs README.md in jets_gem_layer-1.0.4
- old
+ new
@@ -24,17 +24,26 @@
2. The layer ARN created by this gem must be inserted so it is referenced on app deployment. The easiest way to do this
is to add the included helper to your environment configuration.
```ruby
-# config/production.rb
+# config/application.rb
-# JetsGemLayer.arn will resolve to the latest version of the published Layer, also looking for a correct hash in the
-# layer description indicating the current Gemfile.lock and Gemfile are supported.
-# If a suitable layer is not found, the gem will log an error and resolve to 'error-fetching-gem-layer-arn' which will allow your
-# application to run locally but hopefully prevent an invalid deployment
-config.lambda.layers = [JetsGemLayer.arn]
+require 'jets_gem_layer'
+
+module CrmBroker
+ class Application < Jets::Application
+
+ # JetsGemLayer.arn will resolve to the latest version of the published Layer, also looking for a correct hash in the
+ # layer description indicating the current Gemfile.lock and Gemfile are supported.
+ # If a suitable layer is not found, the gem will log an error and resolve to 'error-fetching-gem-layer-arn' which will allow your
+ # application to run locally but hopefully prevent an invalid deployment
+ config.lambda.layers = [JetsGemLayer.arn]
+
+ # ...
+ end
+end
```
3. Add this gem to your Gemfile:
```ruby
# Gemfile
@@ -44,10 +53,9 @@
4. Add the gem's initializer to your Rakefile
```ruby
# Rakefile
require 'jets'
-require 'jets_gem_layer'
require_relative 'config/application'
Jets.application.load_tasks
JetsGemLayer.load_tasks
```
\ No newline at end of file