Sha256: 26ec54979e47e943c77dd174f2eaa21775191774aae3a0d87ae4178b9120f127

Contents?: true

Size: 264 Bytes

Versions: 27

Compression:

Stored size: 264 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(&:mute)
    end
  end
end

Version data entries

27 entries across 27 versions & 1 rubygems

Version Path
doggy-2.0.8 lib/doggy/cli/mute.rb
doggy-2.0.7 lib/doggy/cli/mute.rb
doggy-2.0.6 lib/doggy/cli/mute.rb
doggy-2.0.5 lib/doggy/cli/mute.rb
doggy-2.0.4 lib/doggy/cli/mute.rb
doggy-2.0.3 lib/doggy/cli/mute.rb
doggy-2.0.2 lib/doggy/cli/mute.rb