Sha256: f4ed83180f0fcb12aa45af81b297b8be70d97a23e8555509efc94862071e2b26

Contents?: true

Size: 587 Bytes

Versions: 38

Compression:

Stored size: 587 Bytes

Contents

# method to remove a tinker applet
def removeapplet
	require 'fileutils'
	nametext = "%s" % [@a_removeapplet]

	begin # exception trapped block
		fileName = "installed/" + nametext + ".inf"
		count =  0
		fd = File.open(fileName,"r") 


		fd.each { |oneline|   
			if count == 1
				if File.exist?(oneline.chop)
					FileUtils.rm_rf( oneline.chop)
				end

			end
			count = 1
		}
		fd.close

		FileUtils.rm_rf( fileName)


		@removeapplettext = "applet files removed! - restart rwd to finish uninstalling"    

	rescue
		@removeapplettext = "\n" + "error"

	end # exception rescue

end

Version data entries

38 entries across 38 versions & 11 rubygems

Version Path
bigtinker-0.93 code/superant.com.rwdtinkerbackwindow/removeapplet.rb
bigtinker-0.94 code/superant.com.rwdtinkerbackwindow/removeapplet.rb
rubyslippers-1.02 code/superant.com.rwdtinkerbackwindow/removeapplet.rb
rubyslippers-1.04 code/superant.com.rwdtinkerbackwindow/removeapplet.rb
rubyslippers-1.03 code/superant.com.rwdtinkerbackwindow/removeapplet.rb
rwdaddresses-1.03 code/superant.com.rwdtinkerbackwindow/removeapplet.rb
rwdaddresses-1.02 code/superant.com.rwdtinkerbackwindow/removeapplet.rb
rwdaddresses-1.04 code/superant.com.rwdtinkerbackwindow/removeapplet.rb
rwddemo-0.92 code/superant.com.rwdtinkerbackwindow/removeapplet.rb
rwdgutenberg-0.04 code/superant.com.rwdtinkerbackwindow/removeapplet.rb
rwdgutenberg-0.06 code/superant.com.rwdtinkerbackwindow/removeapplet.rb
rwdgutenberg-0.07 code/superant.com.rwdtinkerbackwindow/removeapplet.rb
rwdgutenberg-0.05 code/superant.com.rwdtinkerbackwindow/removeapplet.rb
rwdgutenberg-0.08 code/superant.com.rwdtinkerbackwindow/removeapplet.rb
rwdhypernote-0.11 code/superant.com.rwdtinkerbackwindow/removeapplet.rb
rwdhypernote-0.08 code/superant.com.rwdtinkerbackwindow/removeapplet.rb
rwdhypernote-0.09 code/superant.com.rwdtinkerbackwindow/removeapplet.rb
rwdhypernote-0.07 code/superant.com.rwdtinkerbackwindow/removeapplet.rb
rwdhypernote-0.10 code/superant.com.rwdtinkerbackwindow/removeapplet.rb
rwdmovies-0.94 code/superant.com.rwdtinkerbackwindow/removeapplet.rb