Sha256: 4e6b0325a33502d91ae02367a70e4f71498018a441bef151d776b618ac907f50

Contents?: true

Size: 497 Bytes

Versions: 119

Compression:

Stored size: 497 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

119 entries across 119 versions & 1 rubygems

Version Path
dpl-1.7.1.travis.567.1 lib/dpl/provider/divshot.rb
dpl-1.7.1.travis.561.1 lib/dpl/provider/divshot.rb
dpl-1.6.10.travis.560.1 lib/dpl/provider/divshot.rb
dpl-1.7.0 lib/dpl/provider/divshot.rb
dpl-1.6.9.travis.557.1 lib/dpl/provider/divshot.rb
dpl-1.6.10.travis.558.1 lib/dpl/provider/divshot.rb
dpl-1.6.9 lib/dpl/provider/divshot.rb
dpl-1.6.9.travis.555.1 lib/dpl/provider/divshot.rb
dpl-1.6.8.travis.554.1 lib/dpl/provider/divshot.rb
dpl-1.6.8 lib/dpl/provider/divshot.rb
dpl-1.6.7 lib/dpl/provider/divshot.rb
dpl-1.6.7.travis.553.1 lib/dpl/provider/divshot.rb
dpl-1.6.7.travis.552.1 lib/dpl/provider/divshot.rb
dpl-1.6.7.travis.549.1 lib/dpl/provider/divshot.rb
dpl-1.6.7.travis.546.1 lib/dpl/provider/divshot.rb
dpl-1.6.7.travis.535.1 lib/dpl/provider/divshot.rb
dpl-1.6.6.travis.531.1 lib/dpl/provider/divshot.rb
dpl-1.6.6 lib/dpl/provider/divshot.rb
dpl-1.6.7.travis.527.1 lib/dpl/provider/divshot.rb
dpl-1.6.6.travis.526.1 lib/dpl/provider/divshot.rb