lib/cany/specification/dsl.rb in cany-0.4.0 vs lib/cany/specification/dsl.rb in cany-0.5.0

- old
+ new

@@ -36,9 +36,17 @@ # @param [Symbol] name The name of the recipe as symbol. def use(name, &block) @specification.recipes << Cany::Recipe.from_name(name).new(@specification, &block) end + def prepare(&block) + @specification.prepare = block + end + + def clean(&block) + @specification.clean = block + end + def build(&block) @specification.build = block end def binary(&block)