Sha256: fd3cf04c6c89b40c41613e59eba5858e73918a61832037be3dbaac0f152f97b2

Contents?: true

Size: 1.49 KB

Versions: 1

Compression:

Stored size: 1.49 KB

Contents

require "massive/version"

module Massive
  autoload :MemoryConsumption, 'massive/memory_consumption'
  autoload :TimingSupport,     'massive/timing_support'
  autoload :Status,            'massive/status'
  autoload :Locking,           'massive/locking'
  autoload :Retry,             'massive/retry'
  autoload :Cancelling,        'massive/cancelling'

  autoload :Process,           'massive/process'
  autoload :Step,              'massive/step'
  autoload :Job,               'massive/job'

  autoload :File,              'massive/file'
  autoload :FileProcess,       'massive/file_process'
  autoload :FileStep,          'massive/file_step'
  autoload :FileJob,           'massive/file_job'

  autoload :Notifications,     'massive/notifications'
  autoload :Notifiers,         'massive/notifiers'

  autoload :ProcessSerializer, 'massive/process_serializer'
  autoload :StepSerializer,    'massive/step_serializer'

  module Authenticators
    autoload :S3,              'massive/authenticators/s3'
  end

  class Cancelled < StandardError; end

  def self.redis
    @redis ||= Resque.redis
  end

  def self.storage_config
    @storage_config
  end

  def self.storage_config=(value)
    @storage_config ||= {}
    @storage_config.merge!(value)
  end

  self.storage_config = {
    directory: 'massive',
    provider: Massive::Authenticators::S3,
    key: nil,
    secret: nil,
    expiration: 1 * 60 * 60 # 1 hour
  }
end

require "resque"
require "mongoid"
require "active_model_serializers"
require "file_processor"

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
massive-0.3.0 lib/massive.rb