class Dustcart::Resource::Input::File
input: file
Public Instance Methods
precheck()
click to toggle source
Calls superclass method
# File lib/dustcart/input/file.rb, line 8 def precheck super raise <<-EOS.unindent unless Object::File.file?(from) target(#{from}) is not a regular file EOS end
run()
click to toggle source
Calls superclass method
# File lib/dustcart/input/file.rb, line 16 def run super target = "#{to_dir}/#{label}" FileUtils.cp(from, target) end