Parent

Methods

Files

MogileFS::NewFile::Tempfile

Public Class Methods

new(*args) click to toggle source
# File lib/mogilefs/new_file/tempfile.rb, line 6
def initialize(*args)
  @mogilefs_httpfile_args = args
  super("mogilefs-client")
  unlink
end

Public Instance Methods

close() click to toggle source
# File lib/mogilefs/new_file/tempfile.rb, line 19
def close
  commit
  super
end
commit() click to toggle source
# File lib/mogilefs/new_file/tempfile.rb, line 12
def commit
  rewind
  tmp = MogileFS::HTTPFile.new(*@mogilefs_httpfile_args)
  tmp.big_io = to_io
  tmp.commit
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.