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.8.travis.359.1 lib/dpl/provider/divshot.rb
dpl-1.5.8.travis.356.1 lib/dpl/provider/divshot.rb
dpl-1.5.8.travis.336.1 lib/dpl/provider/divshot.rb
dpl-1.5.8.travis.330.1 lib/dpl/provider/divshot.rb
dpl-1.5.8.travis.328.1 lib/dpl/provider/divshot.rb
dpl-1.5.8.travis.326.1 lib/dpl/provider/divshot.rb
dpl-1.5.8.travis.325.1 lib/dpl/provider/divshot.rb
dpl-1.5.8.travis.312.1 lib/dpl/provider/divshot.rb
dpl-1.5.8.travis.309.1 lib/dpl/provider/divshot.rb
dpl-1.5.8.travis.308.1 lib/dpl/provider/divshot.rb
dpl-1.5.8.travis.303.1 lib/dpl/provider/divshot.rb
dpl-1.5.7 lib/dpl/provider/divshot.rb
dpl-1.5.6 lib/dpl/provider/divshot.rb
dpl-1.5.5 lib/dpl/provider/divshot.rb
dpl-1.5.5.travis.270.1 lib/dpl/provider/divshot.rb
dpl-1.5.4 lib/dpl/provider/divshot.rb
dpl-1.5.3.travis.269.1 lib/dpl/provider/divshot.rb
dpl-1.5.3.travis.268.1 lib/dpl/provider/divshot.rb
dpl-1.5.3.travis.264.1 lib/dpl/provider/divshot.rb
dpl-1.5.3.travis.265.1 lib/dpl/provider/divshot.rb