Sha256: 9185f1fece71f466da1603aec124f449ab60d382eb5c3b3303803b0e30455639

Contents?: true

Size: 578 Bytes

Versions: 6

Compression:

Stored size: 578 Bytes

Contents

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

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

    def run
      begin
        if ids.any?
          Doggy::Dash.upload(ids)
          Doggy::Monitor.upload(ids)
          Doggy::Screen.upload(ids)
        else
          Doggy::Dash.upload_all
          Doggy::Monitor.upload_all
          Doggy::Screen.upload_all
          Doggy.emit_shipit_deployment if ENV['SHIPIT']
        end
      rescue DoggyError
        puts "Push 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/push.rb
doggy-0.2.0 lib/doggy/cli/push.rb
doggy-0.1.3 lib/doggy/cli/push.rb
doggy-0.1.2 lib/doggy/cli/push.rb
doggy-0.1.1 lib/doggy/cli/push.rb
doggy-0.1.0 lib/doggy/cli/push.rb