module Hoe::RakeHelpers

def edit( filename )

## from doing so.
## Invoke the user's editor on the given +filename+ and return the exit code
def edit( filename )
	editor = ENV['EDITOR'] || ENV['VISUAL'] || DEFAULT_EDITOR
	system editor, filename
	unless $?.success? || editor =~ /vim/i
		fail "Editor exited uncleanly."
	end
end