Sha256: a8f85aab41a841d42bb8128d9bebebdadf303c85b7b11b59798c64db5f225325

Contents?: true

Size: 304 Bytes

Versions: 6

Compression:

Stored size: 304 Bytes

Contents

# encoding: utf-8

module Doggy
  class CLI::Unmute
    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!('unmute') }
    end
  end
end


Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
doggy-2.0.36 lib/doggy/cli/unmute.rb
doggy-2.0.35 lib/doggy/cli/unmute.rb
doggy-2.0.34 lib/doggy/cli/unmute.rb
doggy-2.0.33 lib/doggy/cli/unmute.rb
doggy-2.0.32 lib/doggy/cli/unmute.rb
doggy-2.0.31 lib/doggy/cli/unmute.rb