Sha256: 62b32d9c9814cc15e4f83cdff7f965b236f7be905678dd40b7cfbf8cdb925a1a

Contents?: true

Size: 371 Bytes

Versions: 4

Compression:

Stored size: 371 Bytes

Contents

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

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

    def run
      begin
        Doggy::Dash.delete(ids)
        Doggy::Monitor.delete(ids)
        Doggy::Screen.delete(ids)
      rescue DoggyError
        puts "Create failed."
        exit 1
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
doggy-0.1.3 lib/doggy/cli/delete.rb
doggy-0.1.2 lib/doggy/cli/delete.rb
doggy-0.1.1 lib/doggy/cli/delete.rb
doggy-0.1.0 lib/doggy/cli/delete.rb