lib/docman/builders/builder.rb in docman-0.0.14 vs lib/docman/builders/builder.rb in docman-0.0.15

- old
+ new

@@ -20,15 +20,20 @@ @@builders[name] = self end def config super + @version = nil add_action('before_execute', {'type' => :clean_changed}, @context) end def validate_command raise "Please provide 'context'" if @context.nil? raise "Context should be of type 'Info'" unless @context.is_a? Docman::Info + end + + def version + @version end before_execute do if @context.need_rebuild? @context.build_mode = :rebuild