class Dpl::Providers::Snap
Public Instance Methods
Source
# File lib/dpl/providers/snap.rb, line 33 def install return if which 'snapcraft' shell :apt_get_update shell :update_snapd shell :install ENV['PATH'] += ':/snap/bin' end
Source
# File lib/dpl/providers/snap.rb, line 42 def login shell :login, assert: 'Failed to authenticate: %{err}', success: '%{out}', capture: true end
Source
# File lib/dpl/providers/snap.rb, line 46 def validate error :no_snaps if snaps.empty? error :multiple_snaps if snaps.size > 1 end