lib/capitate/plugins/script.rb in capitate-0.2.11 vs lib/capitate/plugins/script.rb in capitate-0.2.13
- old
+ new
@@ -34,14 +34,16 @@
# Yields path to unpacked source.
#
# ==== Options
# +url+:: URL to download
# +dest+:: Destination directory
- # +options+::
- # - +clean+:: If true will remove the unpacked directory. _Defaults to true_
- # - +unpack_dir+:: Directory that is unpacked from tgz (if not matching the file name)
+ # +options+:: Options (see Unpack options)
#
+ # ==== Unpack options
+ # +clean+:: If true will remove the unpacked directory. _Defaults to true_
+ # +unpack_dir+:: Directory that is unpacked from tgz (if not matching the file name)
+ #
# ==== Examples
# script.unpack("http://rubyforge.org/frs/download.php/29548/rubygems-1.0.1.tgz", "/tmp/rubygems") do
# sudo "ruby setup.rb"
# end
#
@@ -78,10 +80,10 @@
# Uses run_via to execute, so will use <tt>run</tt> or <tt>sudo</tt>
# depending on the current <tt>:run_method</tt>
#
# ==== Options
# +cmds+:: Commands (separated by newlines)
- # +options+:: See invoke_command options
+ # +options+:: See Capistrano invoke_command options
#
def run_all(cmds, options = {}, &block)
cmds.split("\n").each do |cmd|
cmd = cmd.gsub(/^\s+/, "")
run_via(cmd, options, &block)
\ No newline at end of file