paperclip

https://github.com/thoughtbot/paperclip

Ruby

Easy file attachment management for ActiveRecord

Paperclip::Helpers#run

The run method takes the name of a binary to run, the arguments
to that binary, the values to interpolate and some local options.

 :cmd -> The name of a binary to run.

 :arguments -> The command line arguments to that binary.

 :interpolation_values -> Values to be interpolated into the arguments.

 :local_options -> The options to be used by Cocain::CommandLine.
                   These could be: runner
                                   logger
                                   swallow_stderr
                                   expected_outcodes
                                   environment
                                   runner_options

Source | Google | Stack overflow

Edit

git clone [email protected]:thoughtbot/paperclip.git

cd paperclip

open lib/paperclip/helpers.rb

Contribute

# Make a new branch

git checkout -b -your-name--update-docs-Paperclip--Helpers-run-for-pr


# Commit to git

git add lib/paperclip/helpers.rbgit commit -m "better docs for Paperclip::Helpers#run"


# Open pull request

gem install hub # on a mac you can `brew install hub`

hub fork

git push <your name> -your-name--update-docs-Paperclip--Helpers-run-for-pr

hub pull-request


# Celebrate!