lib/freyr/service_info.rb in freyr-0.3.12 vs lib/freyr/service_info.rb in freyr-0.3.13
- old
+ new
@@ -98,9 +98,19 @@
def namespace name
@namespace = name
end
+ def group name, *services
+ puts "Trying #{name.inspect} on #{services.inspect}"
+ services.each do |s|
+ Service[s].each do |service|
+ puts "Service: #{service.name}"
+ service.service_info.group(name)
+ end
+ end
+ end
+
def service name=nil, &blk
name = "#{@namespace}:#{name}" if @namespace
if service = Service[name].first
service.service_info.instance_eval(&blk)
else
\ No newline at end of file