Ruby 如何使用保护副本(并保留目录结构)
一个简短的问题。我有一个如下的目录结构 myroot/ parent/ one.png two.png mydestination/Ruby 如何使用保护副本(并保留目录结构),ruby,guard,Ruby,Guard,一个简短的问题。我有一个如下的目录结构 myroot/ parent/ one.png two.png mydestination/ guard :copy, :from => "templ/coffeescript/template/module/", :to => "include", :mkpath => true do watch(%r{.+\.png}) do |m| println #{m[0]} end
guard :copy, :from => "templ/coffeescript/template/module/", :to => "include", :mkpath => true do
watch(%r{.+\.png}) do |m|
println #{m[0]}
end
end