Sha256: 46c530cc3b33781f432d7c6348e401574136e401ad52041e45c9b92b20d12e0f

Contents?: true

Size: 250 Bytes

Versions: 2

Compression:

Stored size: 250 Bytes

Contents

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(&:unmute)
    end
  end
end


Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
doggy-2.0.1 lib/doggy/cli/unmute.rb
doggy-2.0.0 lib/doggy/cli/unmute.rb