Sha256: c7b80a5877f8fdb36fa4c361b040e23d6a9c4bc7fc3f7864ff1279a7faee6cf0

Contents?: true

Size: 269 Bytes

Versions: 27

Compression:

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


Version data entries

27 entries across 27 versions & 1 rubygems

Version Path
doggy-2.0.30 lib/doggy/cli/unmute.rb
doggy-2.0.29 lib/doggy/cli/unmute.rb
doggy-2.0.28 lib/doggy/cli/unmute.rb
doggy-2.0.27 lib/doggy/cli/unmute.rb
doggy-2.0.26 lib/doggy/cli/unmute.rb
doggy-2.0.25 lib/doggy/cli/unmute.rb
doggy-2.0.24 lib/doggy/cli/unmute.rb
doggy-2.0.23 lib/doggy/cli/unmute.rb
doggy-2.0.22 lib/doggy/cli/unmute.rb
doggy-2.0.21 lib/doggy/cli/unmute.rb
doggy-2.0.20 lib/doggy/cli/unmute.rb
doggy-2.0.19 lib/doggy/cli/unmute.rb
doggy-2.0.18 lib/doggy/cli/unmute.rb
doggy-2.0.17 lib/doggy/cli/unmute.rb
doggy-2.0.15 lib/doggy/cli/unmute.rb
doggy-2.0.14 lib/doggy/cli/unmute.rb
doggy-2.0.12 lib/doggy/cli/unmute.rb
doggy-2.0.11 lib/doggy/cli/unmute.rb
doggy-2.0.10 lib/doggy/cli/unmute.rb
doggy-2.0.9 lib/doggy/cli/unmute.rb