applicationsonline / librarian

Librarian - A Framework for Bundlers. Librarian-Chef is at: https://github.com/applicationsonline/librarian-chef.
http://applicationsonline.com/
MIT License
655 stars 71 forks source link

Use librarian in rake task? #90

Closed thegcat closed 11 years ago

thegcat commented 12 years ago

Im trying to build a rake task to take care of the librarian-chef install and vagrant up steps, what would be the best/recommended way to execute "cli" steps without having to shell out?

thegcat commented 12 years ago

(bonus points if it can seamlessly integrated into vagrant up without the need for a rake task)

cburyta commented 11 years ago

(per rake task) I can't say I'm sure about it being the best way, but "sh" has been working well for me. https://gist.github.com/3824824

thegcat commented 11 years ago

Not a big fan of having to shell out to execute ruby stuff from a rake task, but oh well.

yfeldblum commented 11 years ago

Librarian has been moving in the direction of having an API for which the CLI is a simple shell, but the work is not yet complete.

In the meantime, there is no supported or documented API. The only supported and documented pieces are the CLI. And even then, Librarian and Librarian-Chef are pre-1.0 so even their CLIs are likely to change over time.

thegcat commented 11 years ago

Closing here as I've scratched my own itch and made a vagrant plugin that will automatically install Librarian-managed cookbooks on vagrant up https://github.com/thegcat/vagrant-librarian