Sha256: bf4061c8f0fca94fd5debc79154b412a324eadb950ce155ba0aac60c2bc83b84

Contents?: true

Size: 1.03 KB

Versions: 3

Compression:

Stored size: 1.03 KB

Contents

  # this method adds a new address record
  def saverubyslippersconfiguration
   require 'fileutils'
   
   newname = "rubyslippers.cnf" # grab the filename to create
   newdata =@a_rsconfigline1.to_s + "\n" + @a_rsconfigline2.to_s + "\n" + @a_rsconfigline3.to_s + "\n" + @a_rsconfigline4.to_s + "\n" + @a_rsconfigline5.to_s + "\n" + @a_rsconfigline6.to_s + "\n" + @a_rsconfigline7.to_s + "\n" + @a_rsconfigline8.to_s + "\n" + @a_rsconfigline9.to_s + "\n"+ @a_rsconfigline10.to_s + "\n"+ @a_rsconfigline11.to_s + "\n"+ @a_rsconfigline12.to_s + "\n"+ @a_rsconfigline13.to_s + "\n"+ @a_rsconfigline14.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

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
rubyslippers-1.00 code/superant.com.rubyslippers/saveconfigurationrecord.rb
rubyslippers-1.02 code/superant.com.rubyslippers/saveconfigurationrecord.rb
rubyslippers-1.01 code/superant.com.rubyslippers/saveconfigurationrecord.rb