Allow permission to sign windows

Here is the rake file.

task :default  => :release

task :release do
    target = 'releases/' + Time.new.strftime('%Y%m%d')
    mkdir_p target
    cp Dir["web"], target 
end

I get a "permission denied - network". what should I do to give rake the same rights that I have when they start in windows.

+5
source share
2 answers

I had this problem, as simple as the goal was read-only. In this case, it webmay not exist or may be unreadable.

I'm not an expert in rake, but where is it announced Dir?

0
source

How about using sh?

sh %& copy "#{Dir['web']}" "#{target}" &
0
source

All Articles