Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/gromnitsky/mruby-fileutils-simple
- Owner: gromnitsky
- Created: 2014-09-08T20:59:58.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2014-09-09T21:53:30.000Z (about 10 years ago)
- Last Synced: 2023-04-10T15:02:53.821Z (over 1 year ago)
- Language: Ruby
- Size: 133 KB
- Stars: 1
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.erb.md
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: trueAvailable 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.