Module: Doing::WWIDFileTools

Included in:
WWID
Defined in:
lib/doing/wwid/filetools.rb

Overview

File methods for WWID class

Instance Method Summary collapse

Instance Method Details

#create(filename = nil) ⇒ Object

Create a new doing file

#init_doing_file(path = nil) ⇒ Object

Initializes the doing file.

Parameters:

  • path (String) (defaults to: nil)

    Override path to a doing file, optional

#rotate(opt) ⇒ Object

Rename doing file with date and start fresh one

#write(file = nil, backup: true) ⇒ Object

Write content to file or STDOUT

Parameters:

  • file (String) (defaults to: nil)

    The filepath to write to