Class: CronEdit::FileCrontab
Instance Method Summary collapse
-
#initialize(anInputFile = nil, anOutputFile = nil) ⇒ FileCrontab
constructor
anInputFile and anOutputFile can be either filename - to r/w the file, ‘-’ to use STDIN/STDOUT, or nil for no input/output.
Methods inherited from Crontab
Add, List, Merge, Remove, Subtract, #add, #clear!, #commit, #list, #listFull, #listRaw, #merge, #remove, #review, #rollback, #setIO, #subtract
Constructor Details
#initialize(anInputFile = nil, anOutputFile = nil) ⇒ FileCrontab
anInputFile and anOutputFile can be either filename - to r/w the file, ‘-’ to use STDIN/STDOUT, or nil for no input/output
323 324 325 326 327 328 329 |
# File 'lib/cronedit.rb', line 323 def initialize anInputFile = nil, anOutputFile = nil super nil @input = anInputFile @opts[:close_input] = false if @input=='-' @output = anOutputFile @opts[:close_output] = false if @output=='-' end |