lib/docman/builders/builder.rb in docman-0.0.6 vs lib/docman/builders/builder.rb in docman-0.0.7

- old
+ new

@@ -20,19 +20,18 @@ @@builders[name] = self end def config super - add_action('before_execute', {'type' => :clean_changed}) + 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 before_execute do - #TODO: rebuld if config changed. if @context.need_rebuild? log("Need rebuild") else log("Rebuild not needed") raise NoChangesError, 'This version already deployed' unless changed?