Module: Refinery::Resources

Includes:
ActiveSupport::Configurable
Defined in:
resources/lib/refinery/resources.rb,
resources/lib/refinery/resources/engine.rb,
resources/lib/refinery/resources/dragonfly.rb,
resources/lib/refinery/resources/validators.rb,
resources/lib/refinery/resources/configuration.rb,
resources/lib/refinery/resources/validators/file_size_validator.rb

Defined Under Namespace

Modules: Dragonfly, Validators Classes: Engine

Class Method Summary (collapse)

Class Method Details

+ (Object) datastore_root_path



22
23
24
# File 'resources/lib/refinery/resources/configuration.rb', line 22

def datastore_root_path
  config.datastore_root_path || (Rails.root.join('public', 'system', 'refinery', 'resources').to_s if Rails.root)
end

+ (Object) factory_paths



20
21
22
# File 'resources/lib/refinery/resources.rb', line 20

def factory_paths
  @factory_paths ||= [ root.join("spec/factories").to_s ]
end

+ (Object) root



16
17
18
# File 'resources/lib/refinery/resources.rb', line 16

def root
  @root ||= Pathname.new(File.expand_path('../../../', __FILE__))
end

+ (Object) s3_access_key_id



34
35
36
# File 'resources/lib/refinery/resources/configuration.rb', line 34

def s3_access_key_id
  config.s3_access_key_id.nil? ? Refinery::Core.s3_access_key_id : config.s3_access_key_id
end

+ (Object) s3_backend



26
27
28
# File 'resources/lib/refinery/resources/configuration.rb', line 26

def s3_backend
  config.s3_backend.nil? ? Refinery::Core.s3_backend : config.s3_backend
end

+ (Object) s3_bucket_name



30
31
32
# File 'resources/lib/refinery/resources/configuration.rb', line 30

def s3_bucket_name
  config.s3_bucket_name.nil? ? Refinery::Core.s3_bucket_name : config.s3_bucket_name
end

+ (Object) s3_secret_access_key



38
39
40
# File 'resources/lib/refinery/resources/configuration.rb', line 38

def s3_secret_access_key
  config.s3_secret_access_key.nil? ? Refinery::Core.s3_secret_access_key : config.s3_secret_access_key
end