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.5 lib/dpl/provider/cargo.rb
dpl-cargo-1.10.5.travis.3089.5 lib/dpl/provider/cargo.rb
dpl-cargo-1.10.5.travis.3069.5 lib/dpl/provider/cargo.rb
dpl-cargo-1.10.4 lib/dpl/provider/cargo.rb
dpl-cargo-1.10.5.travis.3062.5 lib/dpl/provider/cargo.rb
dpl-cargo-1.10.4.travis.3055.5 lib/dpl/provider/cargo.rb
dpl-cargo-1.10.4.travis.3054.5 lib/dpl/provider/cargo.rb
dpl-cargo-1.10.4.travis.3053.5 lib/dpl/provider/cargo.rb
dpl-cargo-1.10.4.travis.3047.6 lib/dpl/provider/cargo.rb