aptlyapi 0.0.5 → 0.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/server.rb +3 -3
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 8e9dfdf35c1246cce5955ce78be6b6f5af50770e
|
|
4
|
+
data.tar.gz: eb22ff8638880e4cd2bad325c94ce622c4eb5b64
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: b7a17b0b046053c57cff2845da0dbd9cacf19ec3924b66d65a57ff2c5d539039cb63745c8ed642c30940a0f74a1e4e54d5502834ee979c2e3bc4bed43cb56266
|
|
7
|
+
data.tar.gz: fdb4e151a3112fd5fd84422f2623106374666a645b84d21a1f8e12234aef68a56ebd0ea09951d3efffe34bb9f1d91cc37992a48dba8c400c985d29ca93778678
|
data/lib/server.rb
CHANGED
|
@@ -97,7 +97,7 @@ module AptlyAPI
|
|
|
97
97
|
end
|
|
98
98
|
|
|
99
99
|
##
|
|
100
|
-
# Publish a repo from +sources+ (
|
|
100
|
+
# Publish a repo from +sources+ (hash of "Component/Name")
|
|
101
101
|
#
|
|
102
102
|
# TODO: There are bare minimum for the moment and will change
|
|
103
103
|
def publish(kind, sources, distribution, keyid, password)
|
|
@@ -106,7 +106,7 @@ module AptlyAPI
|
|
|
106
106
|
body.merge!({"Sources" => sources})
|
|
107
107
|
body.merge!({"Distribution" => distribution})
|
|
108
108
|
body.merge!({"ForceOverwrite" => true})
|
|
109
|
-
body.merge!({"Signing" => { "GpgKey" => keyid, "Passphrase" => password}})
|
|
109
|
+
body.merge!({"Signing" => { "Batch" => true, "GpgKey" => keyid, "Passphrase" => password}})
|
|
110
110
|
return true if hpost('/api/publish', body) == 200
|
|
111
111
|
return false
|
|
112
112
|
end
|
|
@@ -118,7 +118,7 @@ module AptlyAPI
|
|
|
118
118
|
def publish_update(distribution, keyid, password)
|
|
119
119
|
body = Hash.new
|
|
120
120
|
body.merge!({"ForceOverwrite" => true})
|
|
121
|
-
body.merge!({"Signing" => { "GpgKey" => keyid, "Passphrase" => password}})
|
|
121
|
+
body.merge!({"Signing" => { "Batch" => true, "GpgKey" => keyid, "Passphrase" => password}})
|
|
122
122
|
return true if hput("/api/publish//#{distribution}", body) == 200
|
|
123
123
|
return false
|
|
124
124
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: aptlyapi
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.6
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Alexander von Gluck IV
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2015-08-
|
|
11
|
+
date: 2015-08-13 00:00:00.000000000 Z
|
|
12
12
|
dependencies: []
|
|
13
13
|
description: Manage remote Aptly servers via the Aptly API
|
|
14
14
|
email: Alex.vonGluck@r1soft.com
|