fanforce-plugin-worker 2.0.0.rc8 → 2.0.0.rc9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/fanforce/plugin_worker/version.rb +1 -1
- data/lib/fanforce/plugin_worker.rb +7 -3
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f1ffa6265e8b082c7f9757066462721b329f5d3a
|
4
|
+
data.tar.gz: 962704858c259679756064bff4542f4ce018b349
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0a89751ade38ad7ab91e36ba96d477a8e7d1b05803640a87c550b305894d2843b10d7b20067b703a9c4cd131a9cf7ee373c82e1a8380ee6cda5715dc94ea01b7
|
7
|
+
data.tar.gz: 82e3babf6a4bf39520d4057f350fec0d9d6a7b2ceee31dd8683fc9015a8d6af29cbcac3c688361c6e874c03b54f6507c30770bd4e9544c9c003cf7a426581ab5
|
@@ -11,14 +11,18 @@ require_relative 'plugin_worker/runner_local' if ENV['RACK_ENV'] == 'development
|
|
11
11
|
|
12
12
|
########################################################################################################################
|
13
13
|
|
14
|
-
# The following is run if file is required from
|
15
|
-
if ENV['
|
16
|
-
require '
|
14
|
+
# The following is run if file is required from within Iron Worker
|
15
|
+
if ENV['PWD'] == '/mnt/task'
|
16
|
+
require 'iron_worker'
|
17
|
+
require 'fanforce/plugin_factory/load_from_worker'
|
17
18
|
Fanforce::Plugin.load(nil)
|
18
19
|
|
19
20
|
Plugin = Fanforce::Plugin
|
20
21
|
PluginWorker = Fanforce::PluginWorker
|
21
22
|
|
23
|
+
# When running in Docker, IronWorker no longer provides the params method
|
24
|
+
def params; IronWorker.payload end
|
25
|
+
|
22
26
|
puts 'FINISHED LOADING PLUGIN'
|
23
27
|
else
|
24
28
|
puts "UNKNOWN CALLER: #{caller[0].split(':')[0]}"
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fanforce-plugin-worker
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.0.
|
4
|
+
version: 2.0.0.rc9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Caleb Clark
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-06-
|
11
|
+
date: 2015-06-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: iron_mq
|