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.5.3.travis.262.1 lib/dpl/provider/divshot.rb
dpl-1.5.3.travis.261.1 lib/dpl/provider/divshot.rb
dpl-1.5.3.travis.259.1 lib/dpl/provider/divshot.rb
dpl-1.5.3.travis.257.1 lib/dpl/provider/divshot.rb
dpl-1.5.3.travis.255.2 lib/dpl/provider/divshot.rb
dpl-1.5.3.travis.254.2 lib/dpl/provider/divshot.rb
dpl-1.5.3.travis.252.2 lib/dpl/provider/divshot.rb
dpl-1.5.2.travis.248.2 lib/dpl/provider/divshot.rb
dpl-1.5.3.travis.249.2 lib/dpl/provider/divshot.rb
dpl-1.5.2 lib/dpl/provider/divshot.rb
dpl-1.5.2.travis.245.2 lib/dpl/provider/divshot.rb
dpl-1.5.2.travis.244.2 lib/dpl/provider/divshot.rb
dpl-1.5.2.travis.243.2 lib/dpl/provider/divshot.rb
dpl-1.5.2.travis.242.2 lib/dpl/provider/divshot.rb
dpl-1.5.2.travis.241.2 lib/dpl/provider/divshot.rb
dpl-1.5.2.travis.240.2 lib/dpl/provider/divshot.rb
dpl-1.5.2.travis.226.2 lib/dpl/provider/divshot.rb
dpl-1.5.2.travis.220.2 lib/dpl/provider/divshot.rb
dpl-1.5.2.travis.218.2 lib/dpl/provider/divshot.rb