Sha256: 0f890d940391705c4a9af2873f9e109299d4af59523bc65f042e316d30803439

Contents?: true

Size: 667 Bytes

Versions: 2

Compression:

Stored size: 667 Bytes

Contents

   # this method puts the configuration rexord on the screen
  def loadtinkerbellconfiguration
 
         require 'fileutils'
          
               @a_tinkerbellconfigurationfilename = "tinkerbellw.cnf" 
        
	      
        begin # exception trapped block
       
       Dir.chdir($progdir)
	      fileName = File.join(ConfigurationDir, @a_tinkerbellconfigurationfilename )
        
        
	      fd = File.open(fileName,"r")
	      @a_tinkerbellconfigurationfile=        fd.read
        fd.close
        rescue SystemCallError, StandardError
            $stderr.print "system call error: " + $!
        end # exception rescue

  end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
tinkerbell-0.03 code/superant.com.tinkerbell/loadconfigurationrecord.rb
tinkerbell-0.04 code/superant.com.tinkerbell/loadconfigurationrecord.rb