Class: Dragonfly::Job::FetchFile
Instance Attribute Summary
Attributes inherited from Step
#args, #job
Instance Method Summary
collapse
Methods inherited from Step
abbreviation, basename, #initialize, #inspect, step_name
Instance Method Details
114
115
116
|
# File 'lib/dragonfly/job.rb', line 114
def apply
job.temp_object = TempObject.new(Pathname.new(path))
end
|
108
109
110
|
# File 'lib/dragonfly/job.rb', line 108
def init
job.name = File.basename(path)
end
|
111
112
113
|
# File 'lib/dragonfly/job.rb', line 111
def path
File.expand_path(args.first)
end
|