lib/docman/builders/builder.rb in docman-0.0.43 vs lib/docman/builders/builder.rb in docman-0.0.44

- old
+ new

@@ -21,10 +21,12 @@ end def config super @version = nil - add_action('before_execute', {'type' => :clean_changed}, @context) + environment = Application.instance.environment(@context.environment_name) + clean_changed = environment['clean_changed'].nil? ? true : environment['clean_changed'] + add_action('before_execute', {'type' => :clean_changed}, @context) if clean_changed end def validate_command raise "Please provide 'context'" if @context.nil? raise "Context should be of type 'Info'" unless @context.is_a? Docman::Info