lib/paperclip.rb in paperclip-2.7.5 vs lib/paperclip.rb in paperclip-2.8.0
- old
+ new
@@ -90,17 +90,17 @@
# :log_command -> Log the command being run when set to true (defaults to false).
# 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.
#
- def run(cmd, arguments = "", local_options = {})
+ def run(cmd, arguments = "", interpolation_values = {}, local_options = {})
if options[:image_magick_path]
Paperclip.log("[DEPRECATION] :image_magick_path is deprecated and will be removed. Use :command_path instead")
end
command_path = options[:command_path] || options[:image_magick_path]
Cocaine::CommandLine.path = [Cocaine::CommandLine.path, command_path].flatten.compact.uniq
local_options = local_options.merge(:logger => logger) if logging? && (options[:log_command] || local_options[:log_command])
- Cocaine::CommandLine.new(cmd, arguments, local_options).run
+ Cocaine::CommandLine.new(cmd, arguments, local_options).run(interpolation_values)
end
def processor(name) #:nodoc:
@known_processors ||= {}
if @known_processors[name.to_s]