Permalink
Browse files

Make the RemoteDependency#try method use invoke_command instead of ru…

…n, for sudo-ability
  • Loading branch information...
1 parent 0dd68b2 commit 9f4627b29c75d9f653ac6ec6e038e5bf103de837 @jamis jamis committed Nov 7, 2008
Showing with 4 additions and 2 deletions.
  1. +2 −0 CHANGELOG.rdoc
  2. +1 −1 lib/capistrano/recipes/deploy/remote_dependency.rb
  3. +1 −1 test/deploy/remote_dependency_test.rb
View
@@ -1,5 +1,7 @@
== (unreleased)
+* Make the RemoteDependency#try method use invoke_command instead of run, for sudo-ability [Matthias Marschall]
+
* Make locally executed commands in Windows more Windows-friendly [esad@esse.at]
* Added :scm_arguments variable for custom SCM arguments (subversion-only, currently) [David Abdemoulaie]
@@ -92,7 +92,7 @@ def message
def try(command, options)
return unless @success # short-circuit evaluation
- configuration.run(command, options) do |ch,stream,out|
+ configuration.invoke_command(command, options) do |ch,stream,out|
warn "#{ch[:server]}: #{out}" if stream == :err
yield ch, stream, out if block_given?
end
@@ -96,7 +96,7 @@ def test_should_use_alternative_message_if_provided
private
def setup_for_a_configuration_run(command, passing)
- expectation = @config.expects(:run).with(command, {})
+ expectation = @config.expects(:invoke_command).with(command, {})
if passing
expectation.returns(true)
else

0 comments on commit 9f4627b

Please sign in to comment.