Class BuildMaster::CottaFile
In: lib/buildmaster/cotta/cotta_file.rb
Parent: Object

Methods

==   append   basename   copy_to   copy_to_path   cotta   delete   exists?   extname   extract   foreach   inspect   load   move_to   move_to_path   name   new   older_than?   open   parent   read   read_binary   relative_path_from   save   stat   to_s   unzip   write   write_binary   zip  

Included Modules

IoChain

Attributes

path  [R] 
stat  [R] 
system  [R] 

Public Class methods

Public Instance methods

Calls open with ‘a’ argument and make sure that the parent directory of the file exists

Loading the file full total. This is used generally for loading an ascii file content. It does not work with binary file on windows system because it does no put the system on binary mode

calls open with ‘r’ as argument.

Calls open with ‘r’ as argument and sets the io to binary mode

Calls open with ‘w’ argument and makes sure that the parent directory of the file exists

Calls open with ‘wb’ argument, sets the io to binmode and make sure that the parent directory of the file exists

[Validate]