not sure what the original hash is, but maybe you want something like:

    cleanup if options.has_key? :prune ? options[:prune] : should_prune?

This should use whatever value the option has, if specified. If an option is not specified, fail over to the settings in the config.