Class: LazyRotator::File::Touch

Inherits:
Undetermined show all
Defined in:
lib/lazy_rotator/file/touch.rb

Overview

Ensure the initial file is in place

Instance Attribute Summary

Attributes inherited from Undetermined

#file_name

Instance Method Summary collapse

Methods inherited from Undetermined

#<=>, #==, file_number, #initialize, #number

Constructor Details

This class inherits a constructor from LazyRotator::File::Undetermined

Instance Method Details

#processObject



9
10
11
12
13
# File 'lib/lazy_rotator/file/touch.rb', line 9

def process
  return unless number.zero?

  FileUtils.touch file_name
end