library for running command line commands in Ruby


cocaine is used to run command line commands in Ruby. Commands are run using backticks(Ruby 1.8) or Process.spawn(Ruby 1.9).

This library supports interpolated arguments and prevents attempts to break system. This library throws exception if the command returns errors.

Performance can be increased by installing the posix-spawn gem.

The successor of this gem can be found in ruby-terrapin.

Upload more screenshots

Please help extend the collection of screenshots. Just make a screenshot and upload it here. You don't need to register or anything.

Upload a screenshot

Hint: upload an image here from your clipboard with Ctrl-V


Install this software package

If the package is available for the distribution you are currently using on your computer then install the software by clicking on…

Install ruby-cocaine