Sha256: 371406a7cf4efd415f6d4a05807e2768af5e015aa3696a869b6c75c5487b791b

Contents?: true

Size: 498 Bytes

Versions: 481

Compression:

Stored size: 498 Bytes

Contents

module DPL
  class Provider
    class Divshot < Provider
      npm_g 'divshot-cli', 'divshot'

      def check_auth
        raise Error, "must supply an api key" unless option(:api_key)
      end

      def check_app
        error "missing divshot.json" unless File.exist? "divshot.json"
      end

      def needs_key?
        false
      end

      def push_app
        context.shell "divshot push #{options[:environment] || "production"} --token=#{option(:api_key)}"
      end
    end
  end
end

Version data entries

481 entries across 481 versions & 3 rubygems

Version Path
dpl-divshot-1.9.1.travis.2710.5 lib/dpl/provider/divshot.rb
dpl-divshot-1.9.1.travis.2705.5 lib/dpl/provider/divshot.rb
dpl-divshot-1.9.0 lib/dpl/provider/divshot.rb
dpl-divshot-1.9.1.travis.2689.5 lib/dpl/provider/divshot.rb
dpl-divshot-1.9.1.travis.2669.5 lib/dpl/provider/divshot.rb
dpl-divshot-1.9.1.travis.2666.5 lib/dpl/provider/divshot.rb
dpl-divshot-1.9.1.travis.2660.5 lib/dpl/provider/divshot.rb
dpl-divshot-1.9.1.travis.2639.5 lib/dpl/provider/divshot.rb
dpl-divshot-1.9.1.travis.2637.5 lib/dpl/provider/divshot.rb
dpl-divshot-1.9.1.travis.2635.5 lib/dpl/provider/divshot.rb
dpl-divshot-1.9.1.travis.2633.5 lib/dpl/provider/divshot.rb
dpl-divshot-1.9.1.travis.2627.5 lib/dpl/provider/divshot.rb
dpl-divshot-1.9.1.travis.2623.5 lib/dpl/provider/divshot.rb
dpl-divshot-1.9.1.travis.2621.5 lib/dpl/provider/divshot.rb
dpl-divshot-1.9.1.travis.2619.5 lib/dpl/provider/divshot.rb
dpl-divshot-1.9.1.travis.2617.5 lib/dpl/provider/divshot.rb
dpl-divshot-1.9.1.travis.2615.5 lib/dpl/provider/divshot.rb
dpl-divshot-1.9.1.travis.2611.5 lib/dpl/provider/divshot.rb
dpl-divshot-1.9.1.travis.2608.5 lib/dpl/provider/divshot.rb
dpl-divshot-1.9.1.travis.2603.5 lib/dpl/provider/divshot.rb