Files

Class/Module Index [+]

Quicksearch

Dragonfly::Job::FetchFile

Public Instance Methods

apply() click to toggle source
# File lib/dragonfly/job.rb, line 124
def apply
  job.update(Pathname.new(path), :name => filename)
end
filename() click to toggle source
# File lib/dragonfly/job.rb, line 121
def filename
  @filename ||= File.basename(path)
end
init() click to toggle source
# File lib/dragonfly/job.rb, line 115
def init
  job.url_attrs[:name] = filename
end
path() click to toggle source
# File lib/dragonfly/job.rb, line 118
def path
  @path ||= File.expand_path(args.first)
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.