Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

27 lines (20 sloc) 0.491 kb
module Kernel
# :stopdoc:
WINDOWS = %r/djgpp|(cyg|ms|bcc)win|mingw/ =~ RUBY_PLATFORM
DEV_NULL = WINDOWS ? 'NUL:' : '/dev/null'
# :startdoc:
def cmd_available?( *args )
io = [STDOUT.dup, STDERR.dup]
STDOUT.reopen DEV_NULL
STDERR.reopen DEV_NULL
system(*(args.flatten))
ensure
STDOUT.reopen io.first
STDERR.reopen io.last
$stdout, $stderr = STDOUT, STDERR
end
def journal
@journal ||= ::Webby::Journal.new
end
end # module Kernel
# EOF
Jump to Line
Something went wrong with that request. Please try again.