We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ec31287 commit 1190400Copy full SHA for 1190400
Rakefile
@@ -31,8 +31,14 @@ begin
31
32
s.license = "MIT"
33
34
- s.signing_key = File.join('/mnt/gem/', 'gem-private_key.pem')
35
- s.cert_chain = ['gem-public_cert.pem']
+ unless ENV['NET_SSH_NOKEY']
+ signing_key = File.join('/mnt/gem/', 'net-ssh-private_key.pem')
36
+ s.signing_key = signing_key
37
+ s.cert_chain = ['gem-public_cert.pem']
38
+ unless (Rake.application.top_level_tasks & ['build','install']).empty?
39
+ raise "No key found at #{signing_key} for signing, use rake <taskname> NET_SSH_NOKEY=1 to build without key" unless File.exist?(signing_key)
40
+ end
41
42
end
43
Jeweler::GemcutterTasks.new
44
rescue LoadError
0 commit comments