Skip to content

Instantly share code, notes, and snippets.

@piavlo
Created June 10, 2013 17:21
Show Gist options
  • Save piavlo/5750591 to your computer and use it in GitHub Desktop.
Save piavlo/5750591 to your computer and use it in GitHub Desktop.
def perform!
super
invoke_flush! if invoke_flush
disable_flushing!(true) if disable_flushing
begin
unless backup_all?
invoke_close! if invoke_close
end
copy!
ensure
disable_flushing!(false) if disable_flushing
end
log!(:finished)
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment