Skip to content

Commit

Permalink
Grammar, contributions
Browse files Browse the repository at this point in the history
  • Loading branch information
djha-skin committed Sep 19, 2014
1 parent ba41609 commit 95f0a9d
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 16 deletions.
1 change: 1 addition & 0 deletions CONTRIBUTORS
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ Oliver Hookins (github: ohookins)
llasram
sbuss
Brett Gailey (github: dnbert)
Daniel Haskin (github: djhaskin987)

If you have contributed (bug reports, feature requests, help in IRC, blog
posts, code, etc) and aren't listed here, please let me know if you wish to be
Expand Down
34 changes: 18 additions & 16 deletions lib/fpm/command.rb
Original file line number Diff line number Diff line change
Expand Up @@ -138,54 +138,56 @@ def help(*args)
"files and dirs to use as input."

option "--post-install", "FILE",
"(DEPRECATED, use --after-install) a script to be run after " \
"(DEPRECATED, use --after-install) A script to be run after " \
"package installation" do |val|
@after_install = File.expand_path(val) # Get the full path to the script
end # --post-install (DEPRECATED)
option "--pre-install", "FILE",
"(DEPRECATED, use --before-install) a script to be run before " \
"(DEPRECATED, use --before-install) A script to be run before " \
"package installation" do |val|
@before_install = File.expand_path(val) # Get the full path to the script
end # --pre-install (DEPRECATED)
option "--post-uninstall", "FILE",
"(DEPRECATED, use --after-remove) a script to be run after " \
"(DEPRECATED, use --after-remove) A script to be run after " \
"package removal" do |val|
@after_remove = File.expand_path(val) # Get the full path to the script
end # --post-uninstall (DEPRECATED)
option "--pre-uninstall", "FILE",
"(DEPRECATED, use --before-remove) a script to be run before " \
"(DEPRECATED, use --before-remove) A script to be run before " \
"package removal" do |val|
@before_remove = File.expand_path(val) # Get the full path to the script
end # --pre-uninstall (DEPRECATED)

option "--after-install", "FILE",
"a script to be run after package installation" do |val|
"A script to be run after package installation" do |val|
File.expand_path(val) # Get the full path to the script
end # --after-install
option "--before-install", "FILE",
"a script to be run before package installation" do |val|
"A script to be run before package installation" do |val|
File.expand_path(val) # Get the full path to the script
end # --before-install
option "--after-remove", "FILE",
"a script to be run after package removal" do |val|
"A script to be run after package removal" do |val|
File.expand_path(val) # Get the full path to the script
end # --after-remove
option "--before-remove", "FILE",
"a script to be run before package removal" do |val|
"A script to be run before package removal" do |val|
File.expand_path(val) # Get the full path to the script
end # --before-remove
option "--after-upgrade", "FILE",
"a script to be run after package upgrade. If not specified," \
" --before-install, --after-install, --before-remove, and --after-remove" \
" wil behave in a backwards-compatible manner" \
" (they will not be upgrade-case aware)." do |val|
"A script to be run after package upgrade. If not specified,\n" \
"--before-install, --after-install, --before-remove, and \n" \
"--after-remove wil behave in a backwards-compatible manner\n" \
"(they will not be upgrade-case aware).\n" \
"Currently only supports deb and rpm packages." do |val|
File.expand_path(val) # Get the full path to the script
end # --after-upgrade
option "--before-upgrade", "FILE",
"a script to be run after package upgrade. If not specified," \
" --before-install, --after-install, --before-remove, and --after-remove" \
" wil behave in a backwards-compatible manner" \
" (they will not be upgrade-case aware)." do |val|
"A script to be run before package upgrade. If not specified,\n" \
"--before-install, --after-install, --before-remove, and \n" \
"--after-remove wil behave in a backwards-compatible manner\n" \
"(they will not be upgrade-case aware).\n" \
"Currently only supports deb and rpm packages." do |val|
File.expand_path(val) # Get the full path to the script
end # --before-upgrade

Expand Down

0 comments on commit 95f0a9d

Please sign in to comment.