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_optionsEdit
git clone [email protected]:thoughtbot/paperclip.git
cd paperclip
open lib/paperclip/helpers.rb
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-Paperclip--Helpers-run-for-pr
# Commit to gitgit add lib/paperclip/helpers.rbgit commit -m "better docs for Paperclip::Helpers#run"
# Open pull requestgem 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!