Module: Dragonfly

Defined in:
lib/dragonfly.rb,
lib/dragonfly/app.rb,
lib/dragonfly/job.rb,
lib/dragonfly/utils.rb,
lib/dragonfly/model.rb,
lib/dragonfly/shell.rb,
lib/dragonfly/server.rb,
lib/dragonfly/content.rb,
lib/dragonfly/railtie.rb,
lib/dragonfly/version.rb,
lib/dragonfly/register.rb,
lib/dragonfly/response.rb,
lib/dragonfly/job/step.rb,
lib/dragonfly/job/fetch.rb,
lib/dragonfly/whitelist.rb,
lib/dragonfly/serializer.rb,
lib/dragonfly/url_mapper.rb,
lib/dragonfly/middleware.rb,
lib/dragonfly/temp_object.rb,
lib/dragonfly/job/process.rb,
lib/dragonfly/configurable.rb,
lib/dragonfly/job/generate.rb,
lib/dragonfly/has_filename.rb,
lib/dragonfly/job_endpoint.rb,
lib/dragonfly/job/fetch_url.rb,
lib/dragonfly/job/fetch_file.rb,
lib/dragonfly/url_attributes.rb,
lib/dragonfly/cookie_monster.rb,
lib/dragonfly/file_data_store.rb,
lib/dragonfly/routed_endpoint.rb,
lib/dragonfly/model/attachment.rb,
lib/dragonfly/memory_data_store.rb,
lib/dragonfly/model/validations.rb,
lib/dragonfly/image_magick/plugin.rb,
lib/dragonfly/model/class_methods.rb,
lib/dragonfly/model/instance_methods.rb,
lib/dragonfly/hash_with_css_style_keys.rb,
lib/dragonfly/image_magick/generators/text.rb,
lib/dragonfly/image_magick/generators/plain.rb,
lib/dragonfly/image_magick/processors/thumb.rb,
lib/dragonfly/image_magick/processors/encode.rb,
lib/dragonfly/image_magick/generators/plasma.rb,
lib/dragonfly/model/attachment_class_methods.rb,
lib/dragonfly/image_magick/processors/convert.rb,
lib/dragonfly/image_magick/generators/convert.rb,
lib/dragonfly/image_magick/analysers/image_properties.rb

Defined Under Namespace

Modules: Configurable, HasFilename, ImageMagick, Model, Serializer, Utils Classes: App, Content, CookieMonster, FileDataStore, HashWithCssStyleKeys, Job, JobEndpoint, MemoryDataStore, Middleware, Railtie, Register, Response, RoutedEndpoint, Server, Shell, TempObject, UrlAttributes, UrlMapper, Whitelist

Constant Summary

VERSION =
'1.0.5'

Class Attribute Summary (collapse)

Class Method Summary (collapse)

Class Attribute Details

+ (Object) logger

Logging



35
36
37
# File 'lib/dragonfly.rb', line 35

def logger
  @logger ||= Logger.new('dragonfly.log')
end

Class Method Details

+ (Object) [](name)



26
27
28
# File 'lib/dragonfly.rb', line 26

def [](name)
  App[name]
end

+ (Object) app(name = nil)



22
23
24
# File 'lib/dragonfly.rb', line 22

def app(name=nil)
  App.instance(name)
end

+ (Boolean) running_on_windows?

Returns:

  • (Boolean)


30
31
32
# File 'lib/dragonfly.rb', line 30

def running_on_windows?
  !!(RbConfig::CONFIG['host_os'] =~ %r!(msdos|mswin|djgpp|mingw)!)
end