s3repo 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/s3repo +14 -5
- data/lib/s3repo/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 112c8a99e461d482e62c3b4e742b22f3ddd3a97d
|
4
|
+
data.tar.gz: 9e8da23f00dce76151f74723c077151b56a5618e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c4abb7f76cb5f4458f1f220fb86df3bd30ed77149281f22259cf4b11d8475ab2700deccb3f7d0e3f51e5d9a060d249f0dc3c81664d7847c05ad6a4fe009616bd
|
7
|
+
data.tar.gz: 41b56c96ae04890d7395b9d7b504ebb646b6306304df1f072c8227ca33e2f67b7ee609cd7fb176594e46e634a1dbba4b932249e17b9885e61a4f175a620909bd
|
data/bin/s3repo
CHANGED
@@ -3,26 +3,35 @@
|
|
3
3
|
require 's3repo'
|
4
4
|
require 'mercenary'
|
5
5
|
|
6
|
+
def find(pattern, limits)
|
7
|
+
Dir.glob(pattern).select { |x| !limits || limits.include?(File.dirname(x)) }
|
8
|
+
end
|
9
|
+
|
6
10
|
Mercenary.program(:s3repo) do |p|
|
7
11
|
p.version S3Repo::VERSION
|
8
12
|
p.description 'Package management tool for Archlinux repos'
|
9
13
|
p.syntax 's3repo <subcommand> [args]'
|
10
14
|
|
11
15
|
p.command(:build) do |c|
|
12
|
-
c.syntax 'build'
|
16
|
+
c.syntax 'build [package...]'
|
13
17
|
c.description 'Build package files from PKGBUILDs'
|
14
18
|
|
15
|
-
c.action do
|
16
|
-
S3Repo.new.build_packages
|
19
|
+
c.action do |args, _|
|
20
|
+
S3Repo.new.build_packages find('*/PKGBUILD', args)
|
17
21
|
end
|
18
22
|
end
|
19
23
|
|
20
24
|
p.command(:upload) do |c|
|
21
|
-
c.syntax 'upload'
|
25
|
+
c.syntax 'upload [package...]'
|
22
26
|
c.description 'Upload packages to repo'
|
23
27
|
|
24
28
|
c.action do
|
25
|
-
S3Repo.new.add_packages
|
29
|
+
S3Repo.new.add_packages find('*/*.pkg.tar.xz', args)
|
26
30
|
end
|
27
31
|
end
|
32
|
+
|
33
|
+
p.action do
|
34
|
+
puts p
|
35
|
+
exit 1
|
36
|
+
end
|
28
37
|
end
|
data/lib/s3repo/version.rb
CHANGED