Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/gromnitsky/mruby-fileutils-simple

Like FileUtils but delegates all work to system tools
https://github.com/gromnitsky/mruby-fileutils-simple

Last synced: about 6 hours ago
JSON representation

Like FileUtils but delegates all work to system tools

Awesome Lists containing this project

README

        

# FileUtilsSimple

A stripped down version of FileUtils (<%=
File.size('../mrblib/main.rb')/1024 %>KB vs. 47KB). It delegates all
hard work to system tools.

The primary use of this mrbgem is
[minirake](https://github.com/gromnitsky/minirake).

Commands are accessible through `FileUtilsSimple` module. For example:

include FileUtilsSimple
mkdir 'foo/bar', verbose: true

Available options: `:verbose`, `:noop`.

It is possible to include `FileUtilsSimple::DryRun`,
`FileUtilsSimple::Verbose` & `FileUtilsSimple::NoWrite`. Then options
for each command are set automatically. (You can still access original
versions via `FileUtilsSimple` module, like `FileUtilsSimple.mkdir`.)

## User Commands

```
<%= `./extract-user-commands` %>
```

## BUGS

* Once `FileUtilsSimple::DryRun` is included, additional options for
commands are ignored.

## License

MIT.