Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
paperclip
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ikcrm_common
paperclip
Commits
ccd3436c
Commit
ccd3436c
authored
Apr 30, 2016
by
Tute Costa
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2182 from ralinchimev/fix-helpers-run-doc
Fix outdated method description in helper module
parents
4a5c5f1f
f7775a9d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
9 deletions
+12
-9
lib/paperclip/helpers.rb
+12
-9
No files found.
lib/paperclip/helpers.rb
View file @
ccd3436c
...
@@ -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
]
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment