Sha256: 1bf88930ca2536f657af65b1c6fb47276b668905fd735979ff7c0b1a98c4dd0c

Contents?: true

Size: 593 Bytes

Versions: 12

Compression:

Stored size: 593 Bytes

Contents

# frozen_string_literal: true

module Dpl
  module Providers
    class Cargo < Provider
      register :cargo

      status :stable

      description sq(<<-STR)
        tbd
      STR

      env :cargo

      opt '--token TOKEN', 'Cargo registry API token', required: true, secret: true
      opt '--allow_dirty', 'Allow publishing from a dirty git working directory'

      cmds publish: 'cargo publish %{publish_opts}'

      def deploy
        shell :publish
      end

      private

      def publish_opts
        opts_for(%i[token allow_dirty], dashed: true)
      end
    end
  end
end

Version data entries

12 entries across 12 versions & 2 rubygems

Version Path
dpl-2.0.5.3 lib/dpl/providers/cargo.rb
dpl-2.0.5.3.beta.1 lib/dpl/providers/cargo.rb
dpl-2.0.5.2 lib/dpl/providers/cargo.rb
dpl-2.0.5.2.beta.1 lib/dpl/providers/cargo.rb
dpl-2.0.5.1 lib/dpl/providers/cargo.rb
dpl-2.0.5.beta.2.1 lib/dpl/providers/cargo.rb
dpl-2.0.5.beta.2 lib/dpl/providers/cargo.rb
dpl-2.0.5 lib/dpl/providers/cargo.rb
dpl-2.0.5.beta.1 lib/dpl/providers/cargo.rb
dpl-2.0.5.beta lib/dpl/providers/cargo.rb
travis_dpl_test-2.0.3.beta.4.ror.1 lib/dpl/providers/cargo.rb
travis_dpl_test-2.0.3.beta.4.ror lib/dpl/providers/cargo.rb