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

Version Path
nake-0.1.1 examples/file.rb
nake-0.1 examples/file.rb
nake-0.0.9.5 examples/file.rb
nake-0.0.9.4 examples/file.rb
nake-0.0.9.3 examples/file.rb
nake-0.0.9.2 examples/file.rb
nake-0.0.9.pre examples/file.rb
do_riak-0.10.1.pre gems/gems/nake-0.0.8/examples/file.rb
nake-0.0.8.pre examples/file.rb
nake-0.0.8 examples/file.rb
nake-0.0.7 examples/file.rb
nake-0.0.6 examples/file.rb