Sha256: c4f8c3c8bc94f0dd75245455ca622b27f048113566f7cc38f310237ef3020bb2
Contents?: true
Size: 812 Bytes
Versions: 1
Compression:
Stored size: 812 Bytes
Contents
require_relative 'deploygate_client' module Danger class DangerDeploygate < Plugin # # Uploading user or group name # # @return [String] # attr_accessor :user # # API Token # # @return [String] # attr_writer :token def token @token ||= ENV['DEPLOYGATE_API_TOKEN'] end def upload(binary, filename, message = nil, distribution_name = nil) client = DeployGate::Client.new(user, token) response = client.upload(binary, filename, message, distribution_name) app_name = response['results']['name'] revision = "##{response['results']['revision']}" url = "https://deploygate.com#{response['results']['path']}" message "DeployGate Uploaded <a href='#{url}'>#{app_name} #{revision}</a>" end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
danger-deploygate-0.0.5 | lib/deploygate/plugin.rb |