Sha256: 221d8da9f26ed2cc3e27c3c693804b86a399c954d2fee29d7054ad93f5672ee6

Contents?: true

Size: 719 Bytes

Versions: 3

Compression:

Stored size: 719 Bytes

Contents

  # this method saves configuration record
  def savetinkerbellguirecord
   require 'fileutils'
   
   sandboxdir1 = File.join("gui", "tinkerbackwindows")
	sandboxdir = File.join(sandboxdir1 , "superant.com.sandbox")
 case @a_tinkerbellguiselect
	when "1sttab"
 
        begin # exception trapped block
          fileName = File.join( sandboxdir, "11tabone.rwd")
        	fd = File.open(fileName,"w")
	        fd.print(@tinkerbellguidesign) # save the record info to the file
	        fd.close
        
        rescue SystemCallError, StandardError
            $stderr.print "system call error: " + $!
        end # exception rescue
    else
	   $stderr.puts "not a valid tab"	  
       end
  end

Version data entries

3 entries across 3 versions & 1 rubygems

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