prm 0.2.11 → 0.2.12
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/bin/prm +15 -4
- 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: a50725feb4e78c0985d259bb57ac638fc4718671
|
|
4
|
+
data.tar.gz: b8b071a6e6c61422c5cf6e1d8a5a0cc3ba7f29f6
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 8498d6c1e22940bb313e75cf306458adb96e5ce189fdcd7996fc72b5bc26bca6508ad8e50764cc8339e4e65be0216481c6c808297c7221578bb784f82066b7a0
|
|
7
|
+
data.tar.gz: 127b3edecf12729f29f6fea7c9c44dedb52a967602d6f786b30c64ea2f24b833aba0a204b7b0dffb26a6ad41c58a9c84ccb56bc732167fce189fb5f5556c835b
|
data/bin/prm
CHANGED
|
@@ -11,10 +11,11 @@ rescue LoadError
|
|
|
11
11
|
end
|
|
12
12
|
|
|
13
13
|
class Main < Clamp::Command
|
|
14
|
-
option ["-
|
|
15
|
-
option ["-
|
|
16
|
-
option ["-
|
|
17
|
-
option ["-
|
|
14
|
+
option ["-v", "--version"], :flag, "Version information"
|
|
15
|
+
option ["-t", "--type"], "TYPE", "Type of repo to create"
|
|
16
|
+
option ["-p", "--path"], "PATH", "Path to repo location"
|
|
17
|
+
option ["-r", "--release"], "RELEASE", "OS version to create"
|
|
18
|
+
option ["-a", "--arch"], "ARCH", "Architecture of repo contents"
|
|
18
19
|
option ["-c", "--component"], "COMPONENT", "Component to create [DEB ONLY]"
|
|
19
20
|
option ["-l", "--label"], "LABEL", "Label for generated repository [DEB ONLY]"
|
|
20
21
|
option ["-o", "--origin"], "ORIGIN", "Origin for generated repository [DEB ONLY]"
|
|
@@ -32,6 +33,16 @@ class Main < Clamp::Command
|
|
|
32
33
|
option ["-k", "--gpg"], "GPG KEY", "Sign release files with this GPG key", :default => false
|
|
33
34
|
|
|
34
35
|
def execute
|
|
36
|
+
if version?
|
|
37
|
+
puts "PRM version: 0.2.12\n"
|
|
38
|
+
exit
|
|
39
|
+
end
|
|
40
|
+
|
|
41
|
+
unless type && path && release && arch
|
|
42
|
+
puts "Type, Path, Release and Arch are required arguements"
|
|
43
|
+
exit
|
|
44
|
+
end
|
|
45
|
+
|
|
35
46
|
if recent? && !snapshot
|
|
36
47
|
raise "--snapshot is required for --recent\n"
|
|
37
48
|
end
|