Run commands with Cocaine gem by releu

757fb0d5ec7560b6f25f5bd98eadc020?size=52

Here is a #gem cocaine by #thoughtbot.

It helps to run and handle commands (like you enter to terminal).

options = {
  title: "Run commands with Cocaine gem",
  content: "..."
}
line = Cocaine::CommandLine.new("gistflow", "-title :title -content :content", options)
line.command
# => "gistflow -title 'Run commands with Cocaine gem' -content '...'"

#ruby