Module: File::FileExtensions::ClassMethods
- Defined in:
- lib/ruckus/extensions/file.rb
Instance Method Summary collapse
Instance Method Details
#mkfifo(name, mode = "666", open_mode = "r") ⇒ Object
4 5 6 7 8 9 10 11 12 13 14 15 16 |
# File 'lib/ruckus/extensions/file.rb', line 4 def mkfifo(name, mode="666", open_mode="r") # XXX not used if File.exists? name and File.pipe? name # Leftover from before File.delete name end # apalling, but ruby/dl has x-p problems if ! File.exists? name `mkfifo -m #{ mode } #{ name }` end return File.open(name, open_mode) end |