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.30 lib/doggy/cli/mute.rb
doggy-2.0.29 lib/doggy/cli/mute.rb
doggy-2.0.28 lib/doggy/cli/mute.rb
doggy-2.0.27 lib/doggy/cli/mute.rb
doggy-2.0.26 lib/doggy/cli/mute.rb
doggy-2.0.25 lib/doggy/cli/mute.rb
doggy-2.0.24 lib/doggy/cli/mute.rb
doggy-2.0.23 lib/doggy/cli/mute.rb
doggy-2.0.22 lib/doggy/cli/mute.rb
doggy-2.0.21 lib/doggy/cli/mute.rb
doggy-2.0.20 lib/doggy/cli/mute.rb
doggy-2.0.19 lib/doggy/cli/mute.rb
doggy-2.0.18 lib/doggy/cli/mute.rb
doggy-2.0.17 lib/doggy/cli/mute.rb
doggy-2.0.15 lib/doggy/cli/mute.rb
doggy-2.0.14 lib/doggy/cli/mute.rb
doggy-2.0.12 lib/doggy/cli/mute.rb
doggy-2.0.11 lib/doggy/cli/mute.rb
doggy-2.0.10 lib/doggy/cli/mute.rb
doggy-2.0.9 lib/doggy/cli/mute.rb