Sha256: 56b7fd634268fea6be2fd68d3b35b627ba5c5ab20fd191b8c0f02251f485dea6

Contents?: true

Size: 893 Bytes

Versions: 24

Compression:

Stored size: 893 Bytes

Contents

  # this method adds a new address record
  def saveconfigurationrecord 
   require 'fileutils'
   if @a_configurationfilename
   newname = "%s" %   [@a_configurationfilename] # grab the filename to create
   newdata =@a_configline1.to_s + "\n" + @a_configline2.to_s + "\n" + @a_configline3.to_s + "\n" + @a_configline4.to_s + "\n" + @a_configline5.to_s + "\n" + @a_configline6.to_s + "\n" + @a_configline7.to_s + "\n" + @a_configline8.to_s + "\n"
	 
        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
          @newconfigurationresult=newdata # show the record info in the browser
        rescue SystemCallError, StandardError
            $stderr.print "system call error: " + $!
        end # exception rescue
    end
  end

Version data entries

24 entries across 24 versions & 7 rubygems

Version Path
rubyslippers-0.96 code/xb1rwdtinkerbackwindow/saveconfigurationrecord.rb
rubyslippers-0.97 code/superant.com.rwdtinkerbackwindow/saveconfigurationrecord.rb
rubyslippers-0.98 code/superant.com.rwdtinkerbackwindow/saveconfigurationrecord.rb
rubyslippers-0.99 code/superant.com.rwdtinkerbackwindow/saveconfigurationrecord.rb
rwdaddresses-0.94 code/rwdtinkerbackwindow/saveconfigurationrecord.rb
rwdaddresses-0.95 code/superant.com.rwdtinkerbackwindow/saveconfigurationrecord.rb
rwdaddresses-0.97 code/superant.com.rwdtinkerbackwindow/saveconfigurationrecord.rb
rwddemo-0.8 code/xb1rwdtinkerbackwindow/saveconfigurationrecord.rb
rwdmovies-0.90 code/superant.com.rwdtinkerbackwindow/saveconfigurationrecord.rb
rwdmovies-0.7 code/xb1rwdtinkerbackwindow/saveconfigurationrecord.rb
rwdshell-0.95 code/superant.com.rwdtinkerbackwindow/saveconfigurationrecord.rb
rwdshell-0.94 code/xb1rwdtinkerbackwindow/saveconfigurationrecord.rb
rwdschedule-0.94 code/superant.com.rwdtinkerbackwindow/saveconfigurationrecord.rb
rwdschedule-0.91 code/superant.com.rwdtinkerbackwindow/saveconfigurationrecord.rb
rwdschedule-0.92 code/superant.com.rwdtinkerbackwindow/saveconfigurationrecord.rb
rwdtinker-1.53 code/superant.com.rwdtinkerbackwindow/saveconfigurationrecord.rb
rwdtinker-1.46 code/superant.com.rwdtinkerbackwindow/saveconfigurationrecord.rb
rwdtinker-1.48 code/superant.com.rwdtinkerbackwindow/saveconfigurationrecord.rb
rwdtinker-1.44 code/xb1rwdtinkerbackwindow/saveconfigurationrecord.rb
rwdtinker-1.51 code/superant.com.rwdtinkerbackwindow/saveconfigurationrecord.rb