0.0
No commit activity in last 3 years
No release in over 3 years
Allows base file operations using UNIX commands such as standard library FileUtils, but returns CommandBuilder objects which allows wide customizations to final call and asynchronous evented EventMachine interface support (although it isn't required). UNIX/Linux based systems only supported.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 1.0.0
>= 1.5.2
>= 0.12.3

Runtime

 Project Readme

EventMachine FileUtils

em-file-utils allows base file operations using UNIX commands such as standard library FileUtils, but returns CommandBuilder objects which allows wide customizations to final call and asynchronous evented EventMachine interface support (although it isn't required). UNIX/GNU based systems only are supported.

Some example:

# synchronous
require "em-file-utils"
output = EM::FileUtils::touch("./~test1").execute!

# asynchronous
EM::run   # eventmachine
    EM::FileUtils::touch("./~test1").execute do |output|
        # ...
    end
end

It returns CommandBuilder object which allows it to be flexible:

cmd = EM::FileUtils::touch("./~test1")
cmd.params.unshift(:a)      # change access time only 
cmd.execute!

Copyright

Copyright © 2011 – 2015 Martin Poljak. See LICENSE.txt for further details.