Class: DPL::Provider::Cargo

Inherits:
DPL::Provider show all
Defined in:
lib/dpl/provider/cargo.rb

Instance Method Summary collapse

Instance Method Details

#check_authObject



11
12
13
# File 'lib/dpl/provider/cargo.rb', line 11

def check_auth
  option(:token)
end

#needs_key?Boolean

Returns:

  • (Boolean)


7
8
9
# File 'lib/dpl/provider/cargo.rb', line 7

def needs_key?
  false
end

#push_appObject



15
16
17
18
19
# File 'lib/dpl/provider/cargo.rb', line 15

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