Sha256: 28c0d588016c0fd8cdba8a4f7de5b945c294931ff737e22b591a09c8e3906767

Contents?: true

Size: 1.62 KB

Versions: 3

Compression:

Stored size: 1.62 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'

  class Cancelled < StandardError; end

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

  def self.fog_credentials
    @fog_credentials
  end

  def self.fog_credentials=(values=nil)
    @fog_credentials = values
  end

  def self.fog_authenticated_url_expiration
    @fog_authenticated_url_expiration
  end

  def self.fog_authenticated_url_expiration=(value=nil)
    @fog_authenticated_url_expiration = value
  end

  def self.fog_directory
    @fog_directory
  end

  def self.fog_directory=(directory=nil)
    @fog_directory = directory
  end

  self.fog_directory = 'massive'
  self.fog_authenticated_url_expiration = 1 * 60 * 60
end

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

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
massive-0.2.0 lib/massive.rb
massive-0.1.1 lib/massive.rb
massive-0.1.0 lib/massive.rb