Sha256: e04dc987b118c9d34ec1ec1f7821914df6f98bda4237cabdf00979201be4f3b1
Contents?: true
Size: 821 Bytes
Versions: 11
Compression:
Stored size: 821 Bytes
Contents
#!/usr/bin/env ./bin/nake # You might want to give more useful description, however you don't have access # to some variables so far ... at least with Rake. Nake provides boot method which # run after everything is loaded, and if you specify optional dependencies for the # boot method, it will run the boot block of specified tasks first. This might come # handy time to time, but usually it's enough to use it without arguments since you # usually need just to load the whole task file where is all the configuration. # Typical usecases: # - you want to provide concrete info in description # - you need to access configuration of a task on other place than in the define block Task.new(:build) do |task| task.boot(:release) do task.description = "Release version #{Task[:release].config[:version]}" end end
Version data entries
11 entries across 11 versions & 2 rubygems