Method: Arrow::Session::FileStore#open

Defined in:
lib/arrow/session/filestore.rb

#open(ioflags = DefaultIoFlags) ⇒ Object

Get the output filehandle for the session backing store file. Open it with the specified ioflags if it’s not already open.



63
64
65
66
67
68
69
70
71
72
# File 'lib/arrow/session/filestore.rb', line 63

def open( ioflags=DefaultIoFlags )
	if @io.nil? || @io.closed?
		file = self.session_file
		self.log.debug "Opening session file %s" % file
		@io = File.open( file, File::RDWR|File::CREAT )
		@io.sync = true
	end

	return @io
end