Sha256: 60f736a6a14eaab1d595aa42ade73ddb6c6bf3172108c46a88260bbb494c6843

Contents?: true

Size: 958 Bytes

Versions: 1

Compression:

Stored size: 958 Bytes

Contents

Gem.loaded_specs["fogged"].dependencies.select { |d| d.type == :runtime }.each do |d|
  require d.name
end

require "fogged/engine"
require "fogged/acts_as_having_one_resource"
require "fogged/acts_as_having_many_resources"

module Fogged
  mattr_accessor :provider
  @@provider = nil

  mattr_accessor :resources
  @@resources = nil

  mattr_accessor :test_enabled
  @@test_enabled = false

  # controller
  mattr_accessor :parent_controller
  @@parent_controller = "ApplicationController"

  # aws
  mattr_accessor :aws_key
  @@aws_key = nil
  mattr_accessor :aws_secret
  @@aws_secret = nil
  mattr_accessor :aws_bucket
  @@aws_bucket = nil
  mattr_accessor :aws_region
  @@aws_region = nil

  # zencoder
  mattr_accessor :zencoder_enabled
  @@zencoder_enabled = false
  mattr_accessor :zencoder_polling_frequency
  @@zencoder_polling_frequency = 10

  def self.configure
    yield self
  end

  def self.test_mode!
    self.test_enabled = true
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
fogged-0.0.2 lib/fogged.rb