Skip to content

Instantly share code, notes, and snippets.

@jugyo
Created December 7, 2009 04:37
Show Gist options
  • Save jugyo/250616 to your computer and use it in GitHub Desktop.
Save jugyo/250616 to your computer and use it in GitHub Desktop.
config.set_default(:confirm, false)
module Termtter
RubytterProxy.register_hook(:confirm, :point => :pre_update) do |*args|
if config.confirm && !Client.confirm("update #{args.first}")
raise CommandCanceled
end
args
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment