class Artifactory::Resource::Certificate
def upload
-
(Resource::Certificate)
-
Other tags:
- Example: Upload a certificate from a File instance -
def upload file = File.new(File.expand_path(local_path)) headers = { "Content-Type" => "application/text" } response = client.post(api_path, file, headers) return unless response.is_a?(Hash) self.class.all.select { |x| x.certificate_alias.eql?(certificate_alias) }.first end