lib/doggy/cli/mute.rb in doggy-2.0.36 vs lib/doggy/cli/mute.rb in doggy-2.0.37
- old
+ new
@@ -13,9 +13,10 @@
monitors = @ids.map { |id| Doggy::Models::Monitor.find(id) }
body = {}
if @options['duration']
body[:end] = Time.now.utc.to_i + Duration.parse(@options['duration']).to_i
end
+ body[:scope] = @options['scope'] if @options['scope']
monitors.each { |monitor| monitor.toggle_mute!('mute', JSON.dump(body)) }
end
end
end