Class: Dragonfly::Job::FetchFile

Inherits:
Step show all
Defined in:
lib/dragonfly/job.rb

Instance Attribute Summary

Attributes inherited from Step

#args, #job

Instance Method Summary collapse

Methods inherited from Step

abbreviation, basename, #initialize, #inspect, step_name

Constructor Details

This class inherits a constructor from Dragonfly::Job::Step

Instance Method Details

#applyObject



114
115
116
# File 'lib/dragonfly/job.rb', line 114

def apply
  job.temp_object = TempObject.new(Pathname.new(path))
end

#initObject



108
109
110
# File 'lib/dragonfly/job.rb', line 108

def init
  job.name = File.basename(path)
end

#pathObject



111
112
113
# File 'lib/dragonfly/job.rb', line 111

def path
  File.expand_path(args.first)
end