[DRE-commits] [ruby-aruba] 33/74: Use process monitor to set the last command stopped

Hideki Yamane henrich at moszumanska.debian.org
Sat Nov 28 01:16:36 UTC 2015


This is an automated email from the git hooks/post-receive script.

henrich pushed a commit to branch debian/sid
in repository ruby-aruba.

commit 11002f93fd6a48fc38cf28d8eb83ae717f9da492
Author: Max Meyer <dev at fedux.org>
Date:   Tue Nov 24 17:11:59 2015 +0100

    Use process monitor to set the last command stopped
---
 lib/aruba/cucumber/command.rb | 12 ++++++++----
 1 file changed, 8 insertions(+), 4 deletions(-)

diff --git a/lib/aruba/cucumber/command.rb b/lib/aruba/cucumber/command.rb
index c941b74..8365023 100644
--- a/lib/aruba/cucumber/command.rb
+++ b/lib/aruba/cucumber/command.rb
@@ -64,15 +64,19 @@ When(/^I (terminate|stop) the command (?:"([^"]*)"|(?:started last))$/) do |sign
     fail ArgumentError, %(No command "#{command}" found) if cmd.nil?
 
     if signal == 'terminate'
-      cmd.terminate
+      # last_command_started.terminate
+      process_monitor.terminate_process!(process_monitor.get_process(command))
     else
-      cmd.stop(announcer)
+      # last_command_started.stop
+      process_monitor.stop_process(process_monitor.get_process(command))
     end
   else
     if signal == 'terminate'
-      last_command_started.terminate
+      # last_command_started.terminate
+      process_monitor.terminate_process!(last_command_started)
     else
-      last_command_started.stop(announcer)
+      # last_command_started.stop
+      process_monitor.stop_process(last_command_started)
     end
   end
 end

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/ruby-aruba.git



More information about the Pkg-ruby-extras-commits mailing list