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.10.4.travis.3030.6 lib/dpl/provider/divshot.rb
dpl-divshot-1.10.3.travis.3021.6 lib/dpl/provider/divshot.rb
dpl-divshot-1.10.4.travis.3022.6 lib/dpl/provider/divshot.rb
dpl-divshot-1.10.3 lib/dpl/provider/divshot.rb
dpl-divshot-1.10.3.travis.3020.6 lib/dpl/provider/divshot.rb
dpl-divshot-1.10.3.travis.3017.6 lib/dpl/provider/divshot.rb
dpl-divshot-1.10.3.travis.3014.6 lib/dpl/provider/divshot.rb
dpl-divshot-1.10.2 lib/dpl/provider/divshot.rb
dpl-divshot-1.10.3.travis.3002.6 lib/dpl/provider/divshot.rb
dpl-divshot-1.10.2.travis.2993.6 lib/dpl/provider/divshot.rb
dpl-divshot-1.10.2.travis.2992.6 lib/dpl/provider/divshot.rb
dpl-divshot-1.10.2.travis.2987.6 lib/dpl/provider/divshot.rb
dpl-divshot-1.10.2.travis.2979.6 lib/dpl/provider/divshot.rb
dpl-divshot-1.10.2.travis.2976.6 lib/dpl/provider/divshot.rb
dpl-divshot-1.10.1 lib/dpl/provider/divshot.rb
dpl-divshot-1.10.2.travis.2966.6 lib/dpl/provider/divshot.rb
dpl-divshot-1.10.1.travis.2957.6 lib/dpl/provider/divshot.rb
dpl-divshot-1.10.1.travis.2956.6 lib/dpl/provider/divshot.rb
dpl-divshot-1.10.1.travis.2947.6 lib/dpl/provider/divshot.rb
dpl-divshot-1.10.0 lib/dpl/provider/divshot.rb