Sha256: c2f3d2e5bd03d4d2bd3d4b04e3b1ef5de31283fb9f01b2e145f49de1792163ba

Contents?: true

Size: 605 Bytes

Versions: 2

Compression:

Stored size: 605 Bytes

Contents

  # this method saves configuration record
  def savetinkerbellconfiguration
   require 'fileutils'

   
   newname = "tinkerbellw.cnf" # grab the filename to create
   newdata = @a_tinkerbellconfigurationfile
   
	  
        begin # exception trapped block
          fileName = File.join( ConfigurationDir, newname )
        	fd = File.open(fileName,"w")
	        fd.print(newdata) # save the record info to the file
	        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/saveconfigurationrecord.rb
tinkerbell-0.04 code/superant.com.tinkerbell/saveconfigurationrecord.rb