vendor/bundle/ruby/1.8/gems/io-reactor-1.0.4/rake/helpers.rb
### Invoke the user's editor on the given +filename+ and return the exit code
### from doing so.
Invoke the user's editor on the given +filename+ and return the exit code
from doing so.
Invoke the user ' s editor on the given + filename + and return the exit code from doing so .
def edit( filename )
	editor = ENV['EDITOR'] || ENV['VISUAL'] || DEFAULT_EDITOR
	system editor, filename
	unless $?.success?
		fail "Editor exited uncleanly."
	end
end
def edit ( filename ) editor = ENV [ 'EDITOR' ] || ENV [ 'VISUAL' ] || DEFAULT_EDITOR system editor , filename unless $? . success? fail "Editor exited uncleanly." end end
Invoke the user's editor on the given +filename+ and return the exit code
from doing so.
Invoke the user ' s editor on the given + filename + and return the exit code from doing so .
filename