Class ChangeSet::CreateOperation
In: lib/fastcst/changeset.rb
Parent: Object

An operation for creating files based on the target directory, path to the file, and a data output stream. It records the file’s contents and the mtime of the file so that it can replicate the file as closely as possible.

Methods

new   run   skip   test  

Public Class methods

Records the file’s path, mtime, and contents. The dir argument is used only to get to the file, and isn’t recorded in the object.

Public Instance methods

Creates the file in the target directory, reading the data out of the indata stream. After the file is created this function will set the mtime so it matches the original. This will overwrite the file it it already exists, so it isn’t safe yet.

Seeks ahead the @length.

Performs tests to see if it’s safe/possible to perform this operation

[Validate]