Sha256: a80c6513dcdb25b94978b56cb1076e079eb22cf9c0a5cec5c1173715d3503464

Contents?: true

Size: 811 Bytes

Versions: 6

Compression:

Stored size: 811 Bytes

Contents

require 'logger'
require 'multi_json'
require 'active_support/all'

require_relative 'plugin_worker/version'
require_relative 'plugin_worker/utils'
require_relative 'plugin_worker/worker'
require_relative 'plugin_worker/errors'
require_relative 'plugin_worker/runner'
require_relative 'plugin_worker/runner_local' if ENV['RACK_ENV'] == 'development'

########################################################################################################################

# The following is run if file is required from an IronWorker
if ENV['HOME'] == '/mnt/task'
  require 'fanforce/plugin_factory/load_iron_worker'
  Fanforce::Plugin.load(nil)

  Plugin = Fanforce::Plugin
  PluginWorker = Fanforce::PluginWorker

  puts 'FINISHED LOADING PLUGIN'
else
  puts "UNKNOWN CALLER: #{caller[0].split(':')[0]}"
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
fanforce-plugin-worker-2.0.0.rc8 lib/fanforce/plugin_worker.rb
fanforce-plugin-worker-2.0.0.rc7 lib/fanforce/plugin_worker.rb
fanforce-plugin-worker-2.0.0.rc6 lib/fanforce/plugin_worker.rb
fanforce-plugin-worker-2.0.0.rc5 lib/fanforce/plugin_worker.rb
fanforce-plugin-worker-2.0.0.rc4 lib/fanforce/plugin_worker.rb
fanforce-plugin-worker-2.0.0.rc3 lib/fanforce/plugin_worker.rb