Sha256: 81088f96e49276ff3ae238dd2d9de8b92633de92e47762b6c5dab12e0d7ee317
Contents?: true
Size: 792 Bytes
Versions: 15
Compression:
Stored size: 792 Bytes
Contents
== The Configure plugin The Configure plugin lets you define a list of checks and generates tasks to run them. I'll show an Rantfile using the Configure plugin and explain it afterwards. conf = plugin :Configure do |conf| conf.task # define a task named :configure conf.check "a" do |c| c.default "value_a" c.guess { "value_a_guess" } c.react { |val| p val } end conf.check "b" do |c| c.default "value_b" end conf.check "c" do |c| end conf.check "d" do |c| c.react { } end conf.check "e" do |c| c.guess { false } end end file conf["a"] do |t| sys.touch t.name end == See also Rant Overview:: README[link:files/README.html] Writing an Rantfile:: doc/rantfile.rdoc[link:files/doc/rantfile_rdoc.html]
Version data entries
15 entries across 15 versions & 1 rubygems