funktor 0.2.5 → 0.2.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/funktor/cli/init.rb +1 -2
- data/lib/funktor/cli/templates/config/boot.rb +16 -0
- data/lib/funktor/cli/templates/config/package.yml +1 -0
- data/lib/funktor/cli/templates/lambda_event_handlers/incoming_job_handler.rb +1 -1
- data/lib/funktor/cli/templates/lambda_event_handlers/work_queue_handler.rb +1 -10
- data/lib/funktor/version.rb +1 -1
- metadata +2 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3a92d7870ba1cde9f91c5d872aab7e5dcc9d7a0d9ee8b4deb75fa1e679ea6ddc
|
4
|
+
data.tar.gz: 79d938d9d46f9763ae6bf7001bf54bb1ad48eefee0a0b5dcbb624a934edbba85
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b741a360102285bc392c6b846677b1859dbb02652b9e9412773fa989172c4a2368429f7825736f4438a543f4ac058098884fd78ce8a8f89be81b10f6b2e4db94
|
7
|
+
data.tar.gz: a450bec63e833671d3eeb7e4e1f00c38eec6c66c59de610ba431f8660a1273dac0ab4db85ff7b41ca2ff9e234c19f771087127d16ab2a21612b731ed61678609
|
data/Gemfile.lock
CHANGED
data/lib/funktor/cli/init.rb
CHANGED
@@ -30,14 +30,13 @@ module Funktor
|
|
30
30
|
name
|
31
31
|
end
|
32
32
|
|
33
|
-
|
34
|
-
|
35
33
|
def funktor_config_yml
|
36
34
|
#template "funktor_config.yml", File.join("funktor_config.yml")
|
37
35
|
template File.join("config", "funktor.yml"), File.join("config", "funktor.yml")
|
38
36
|
template File.join("config", "ruby_layer.yml"), File.join("config", "ruby_layer.yml")
|
39
37
|
template File.join("config", "package.yml"), File.join("config", "package.yml")
|
40
38
|
template File.join("config", "environment.yml"), File.join("config", "environment.yml")
|
39
|
+
template File.join("config", "boot.rb"), File.join("config", "boot.rb")
|
41
40
|
end
|
42
41
|
|
43
42
|
def package_json
|
@@ -0,0 +1,16 @@
|
|
1
|
+
# Point at our Gemfile
|
2
|
+
ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../Gemfile', __dir__)
|
3
|
+
|
4
|
+
# load rubygems & bundler
|
5
|
+
require "rubygems"
|
6
|
+
require 'bundler/setup'
|
7
|
+
|
8
|
+
# Set up gems listed in the Gemfile.
|
9
|
+
Bundler.require(:default, :production)
|
10
|
+
|
11
|
+
# Load all ruby files in the app directory
|
12
|
+
Dir.glob( File.join('..', 'app', '**', '*.rb'), base: File.dirname(__FILE__) ).each do |ruby_file|
|
13
|
+
puts "require_relative #{ruby_file}"
|
14
|
+
require_relative ruby_file
|
15
|
+
end
|
16
|
+
|
@@ -1,13 +1,4 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
# Bundler is hard to make work because AWS includes some gems in the basic ruby runtime.
|
4
|
-
# We're probably going to need to use containers...
|
5
|
-
#require "rubygems"
|
6
|
-
#require "bundler/setup"
|
7
|
-
#Bundler.require(:default)
|
8
|
-
|
9
|
-
# TODO : Ideally this wouldn't be needed
|
10
|
-
require_relative '../workers/hello_worker'
|
1
|
+
require_relative '../config/boot'
|
11
2
|
|
12
3
|
$handler = Funktor::ActiveJobHandler.new
|
13
4
|
|
data/lib/funktor/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: funktor
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jeremy Green
|
@@ -116,6 +116,7 @@ files:
|
|
116
116
|
- lib/funktor/cli/init.rb
|
117
117
|
- lib/funktor/cli/templates/Gemfile
|
118
118
|
- lib/funktor/cli/templates/app/workers/hello_worker.rb
|
119
|
+
- lib/funktor/cli/templates/config/boot.rb
|
119
120
|
- lib/funktor/cli/templates/config/environment.yml
|
120
121
|
- lib/funktor/cli/templates/config/function_definitions/incoming_job_handler.yml
|
121
122
|
- lib/funktor/cli/templates/config/function_definitions/work_queue_handler.yml
|