Skip to content

Use file/git libraries instead of always shelling out #74

@nickserv

Description

@nickserv

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.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions