Sha256: d15393a3f2de2cf9f4a73290cd33dac61c56ce7d0c184beeacd923ba221179b4

Contents?: true

Size: 299 Bytes

Versions: 2

Compression:

Stored size: 299 Bytes

Contents

# encoding: utf-8

module Doggy
  class CLI::Mute
    def initialize(options, ids)
      @options = options
      @ids     = ids
    end

    def run
      monitors = @ids.map { |id| Doggy::Models::Monitor.find(id) }
      monitors.each { |monitor| monitor.toggle_mute!('mute') }
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
doggy-2.0.32 lib/doggy/cli/mute.rb
doggy-2.0.31 lib/doggy/cli/mute.rb