Sha256: 9f82e2555857efef4b5f8853377957d9d89d4f6561c1315f22fc5ada8ea78e2e
Contents?: true
Size: 622 Bytes
Versions: 12
Compression:
Stored size: 622 Bytes
Contents
#!/usr/bin/env ./bin/nake # File tasks doesn't have any options or arguments, # because if you have some setup which may generate # each time different file, than the whole machinery # for recognization if given task should run is useless. # Of course you may want to use task for generating # a file with arguments and options, but then just # use a normal task helper or Task.new method. directory "tmp" directory "tmp/www" file("tmp/restart.txt", "tmp") do |path| touch path end file("tmp/www/index.html", "tmp/www") do |path| File.open(path, "w") do |file| file.puts("<html>Hello World!</html>") end end
Version data entries
12 entries across 12 versions & 2 rubygems