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