Sha256: 43c7ec8459b8faf7516086250d5416696a858dc95f2a9a49153c6fca8c2f5053

Contents?: true

Size: 354 Bytes

Versions: 49

Compression:

Stored size: 354 Bytes

Contents

require 'json'
require 'uri'

module DPL
  class Provider
    class Cargo < Provider
      def needs_key?
        false
      end

      def check_auth
        option(:token)
      end

      def push_app
        if ! context.shell "cargo publish --token #{option(:token)}"
          raise Error, "Publish failed"
        end
      end
    end
  end
end

Version data entries

49 entries across 49 versions & 1 rubygems

Version Path
dpl-cargo-1.10.17.travis.6637.6 lib/dpl/provider/cargo.rb
dpl-cargo-1.10.16 lib/dpl/provider/cargo.rb
dpl-cargo-1.10.16.travis.6625.6 lib/dpl/provider/cargo.rb
dpl-cargo-1.10.16.travis.6619.6 lib/dpl/provider/cargo.rb
dpl-cargo-1.10.16.travis.5961.5 lib/dpl/provider/cargo.rb
dpl-cargo-1.10.15 lib/dpl/provider/cargo.rb
dpl-cargo-1.10.15.travis.5877.5 lib/dpl/provider/cargo.rb
dpl-cargo-1.10.14 lib/dpl/provider/cargo.rb
dpl-cargo-1.10.13 lib/dpl/provider/cargo.rb
dpl-cargo-1.10.13.travis.4159.5 lib/dpl/provider/cargo.rb
dpl-cargo-1.10.13.travis.4141.5 lib/dpl/provider/cargo.rb
dpl-cargo-1.10.13.travis.4040.5 lib/dpl/provider/cargo.rb
dpl-cargo-1.10.13.travis.4033.5 lib/dpl/provider/cargo.rb
dpl-cargo-1.10.12 lib/dpl/provider/cargo.rb
dpl-cargo-1.10.12.travis.4032.5 lib/dpl/provider/cargo.rb
dpl-cargo-1.10.12.travis.3794.5 lib/dpl/provider/cargo.rb
dpl-cargo-1.10.12.travis.3506.5 lib/dpl/provider/cargo.rb
dpl-cargo-1.10.11.travis.3504.5 lib/dpl/provider/cargo.rb
dpl-cargo-1.10.11 lib/dpl/provider/cargo.rb
dpl-cargo-1.10.11.travis.3499.5 lib/dpl/provider/cargo.rb