[DRE-commits] [ruby-aruba] 52/98: Activate multiple channels at once

Hideki Yamane henrich at moszumanska.debian.org
Tue Mar 22 12:20:39 UTC 2016


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 87885838dc9ffdcaad1fede2c80ca35796cca681
Author: Dennis Günnewig <dg1 at ratiodata.de>
Date:   Mon Jan 4 12:05:23 2016 +0100

    Activate multiple channels at once
---
 lib/aruba/platforms/announcer.rb | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lib/aruba/platforms/announcer.rb b/lib/aruba/platforms/announcer.rb
index 7fa8105..daa1d8a 100644
--- a/lib/aruba/platforms/announcer.rb
+++ b/lib/aruba/platforms/announcer.rb
@@ -156,8 +156,8 @@ module Aruba
       #
       # @param [Symbol] channel
       #   The name of the channel to activate
-      def activate(channel)
-        channels[channel.to_sym] = true
+      def activate(*channels)
+        channels.flatten.each { |c| channels[c.to_sym] = true }
 
         self
       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