-
Notifications
You must be signed in to change notification settings - Fork 125
Open
Labels
Description
Advantages
- Shelling out takes a while, and you can get major performance and stability boosts with the right libraries.
- We could save time writing ruby wrappers around command line functionality by using an existing library.
- The code would be a bit less bloated with generalized file/git/etc. code placed somewhere else.
- Many Ruby libraries give comfortable object-oriented interfaces to existing command line functionality.
File stuff
Ruby has a lot of awesome command-line-inspired libraries built in, including FileUtils, which could easily replace many calls to commands like mv, cp, rm, and ln.
Git stuff
Grit looks pretty awesome, as it's what GitHub uses internally. See Supercharged Ruby-Git.
Grit is deprecated, and its readme recommends switching to Rugged.