lib/vanagon/platform/deb.rb
def add_gpg_key(gpg_key)
        gpgname = "#{SecureRandom.hex}-#{File.basename(gpg_key.path)}"
        gpgname = "#{gpgname}.gpg" if gpgname !~ /\.gpg$/
        "curl -o '/etc/apt/trusted.gpg.d/#{gpgname}' '#{gpg_key}'"
      end
# Returns the string to add a gpg key to the platforms' provisioning
#
# @param gpg_key [URI] A URI to the gpg key
# @return [String] The command to add the gpg key to the system
Returns the string to add a gpg key to the platforms' provisioning
Returns the string to add a gpg key to the platforms ' provisioning
def add_gpg_key(gpg_key)
        gpgname = "#{SecureRandom.hex}-#{File.basename(gpg_key.path)}"
        gpgname = "#{gpgname}.gpg" if gpgname !~ /\.gpg$/
        "curl -o '/etc/apt/trusted.gpg.d/#{gpgname}' '#{gpg_key}'"
      end
def add_gpg_key ( gpg_key ) gpgname = "#{SecureRandom.hex}-#{File.basename(gpg_key.path)}" gpgname = "#{gpgname}.gpg" if gpgname !~ / \. gpg$ / "curl -o '/etc/apt/trusted.gpg.d/#{gpgname}' '#{gpg_key}'" end
Returns the string to add a gpg key to the platforms' provisioning
Returns the string to add a gpg key to the platforms ' provisioning
The command to add the gpg key to the system
The command to add the gpg key to the system
String
gpg_key
A URI to the gpg key
A URI to the gpg key