Sha256: 8f4a03eb6d1f11e1bfebbf38c540b078ca69ddae442286275deb356d206426ba
Contents?: true
Size: 705 Bytes
Versions: 13
Compression:
Stored size: 705 Bytes
Contents
def viewrubyslippersconfiguration require 'fileutils' begin # exception trapped block Dir.chdir($progdir) rubyslippersconfigurationfile = File.join( "configuration", "rubyslippers.cnf" ) if File.exist?(rubyslippersconfigurationfile) fd = File.open(rubyslippersconfigurationfile,"r") @rubyslippersconfigurationtext = " " while ! fd.eof? @rubyslippersconfigurationtext = fd.read end fd.close else @rubyslippersconfigurationtext = "File error" end rescue SystemCallError, StandardError $stderr.print "system call error: " + $! @rubyslippersconfigurationtext = "File error" end # exception rescue end
Version data entries
13 entries across 13 versions & 1 rubygems