lib/gratan/client.rb in gratan-0.1.6 vs lib/gratan/client.rb in gratan-0.1.7

- old
+ new

@@ -199,16 +199,21 @@ begin @driver.disable_log_bin_local @updated = false yield updated = @updated + @driver.flush_privileges if updated ensure @updated = nil end - updated + if @options[:dry_run] + false + else + updated + end end def update! - @updated = true unless @options[:dry_run] + @updated = true end end