Commit f7775a9d by Ralin Chimev

Fix outdated method description in helper module

Fixes #2130.
parent 4a5c5f1f
...@@ -8,19 +8,22 @@ module Paperclip ...@@ -8,19 +8,22 @@ module Paperclip
Paperclip::Interpolations[key] = block Paperclip::Interpolations[key] = block
end end
# The run method takes the name of a binary to run, the arguments to that binary # The run method takes the name of a binary to run, the arguments
# and some options: # to that binary, the values to interpolate and some local options.
# #
# :command_path -> A $PATH-like variable that defines where to look for the binary # :cmd -> The name of a binary to run.
# on the filesystem. Colon-separated, just like $PATH.
# #
# :expected_outcodes -> An array of integers that defines the expected exit codes # :arguments -> The command line arguments to that binary.
# of the binary. Defaults to [0].
# #
# :log_command -> Log the command being run when set to true (defaults to true). # :interpolation_values -> Values to be interpolated into the arguments.
# This will only log if logging in general is set to true as well.
# #
# :swallow_stderr -> Set to true if you don't care what happens on STDERR. # :local_options -> The options to be used by Cocain::CommandLine.
# These could be: runner
# logger
# swallow_stderr
# expected_outcodes
# environment
# runner_options
# #
def run(cmd, arguments = "", interpolation_values = {}, local_options = {}) def run(cmd, arguments = "", interpolation_values = {}, local_options = {})
command_path = options[:command_path] command_path = options[:command_path]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment