fanforce-plugin-worker 2.0.0.rc8 → 2.0.0.rc9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 71e14a39029c1c83d92402fb9834b57bfcc13c2a
4
- data.tar.gz: ee81d36b510b3e83b8da81666e656ad9ba0384d3
3
+ metadata.gz: f1ffa6265e8b082c7f9757066462721b329f5d3a
4
+ data.tar.gz: 962704858c259679756064bff4542f4ce018b349
5
5
  SHA512:
6
- metadata.gz: 5dea53c7fce7913e605827b243abd8e6a831c86f83b085d6f1afe0e0cd617fb71b4c2efcb2a04b0c9572693ee984c0a490542388f44046abfa1e70d4162e3ba2
7
- data.tar.gz: b9e35175220525cf4d73b86feb84e8fa16d383a83c639221ede4ede7acfe8a46e1e14a8ca6a67170f637259b5a78260184e66e6a0b3b00a884b6cce22d9bedac
6
+ metadata.gz: 0a89751ade38ad7ab91e36ba96d477a8e7d1b05803640a87c550b305894d2843b10d7b20067b703a9c4cd131a9cf7ee373c82e1a8380ee6cda5715dc94ea01b7
7
+ data.tar.gz: 82e3babf6a4bf39520d4057f350fec0d9d6a7b2ceee31dd8683fc9015a8d6af29cbcac3c688361c6e874c03b54f6507c30770bd4e9544c9c003cf7a426581ab5
@@ -1,5 +1,5 @@
1
1
  class Fanforce
2
2
  class PluginWorker
3
- VERSION = '2.0.0.rc8'
3
+ VERSION = '2.0.0.rc9'
4
4
  end
5
5
  end
@@ -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 an IronWorker
15
- if ENV['HOME'] == '/mnt/task'
16
- require 'fanforce/plugin_factory/load_iron_worker'
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.rc8
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-02 00:00:00.000000000 Z
11
+ date: 2015-06-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: iron_mq