Sha256: 3b62018c3c194b1f950ece1bba7a840d471c5336a6308d8e9104cd2344d54429

Contents?: true

Size: 299 Bytes

Versions: 6

Compression:

Stored size: 299 Bytes

Contents

module Doggy
  class CLI::Mute
    attr_reader :options, :ids

    def initialize(options, ids)
      @options = options
      @ids = ids
    end

    def run
      begin
        Doggy::Monitor.mute(ids)
      rescue DoggyError
        puts "Mute failed."
        exit 1
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
doggy-0.2.2 lib/doggy/cli/mute.rb
doggy-0.2.0 lib/doggy/cli/mute.rb
doggy-0.1.3 lib/doggy/cli/mute.rb
doggy-0.1.2 lib/doggy/cli/mute.rb
doggy-0.1.1 lib/doggy/cli/mute.rb
doggy-0.1.0 lib/doggy/cli/mute.rb