prm 0.2.11 → 0.2.12

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/bin/prm +15 -4
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 942e90c954d67c672ca31f05b6bc60f7ea6d9ce9
4
- data.tar.gz: 65c27e4b98614eb48f74ba64f88ddb2fdbf28f8c
3
+ metadata.gz: a50725feb4e78c0985d259bb57ac638fc4718671
4
+ data.tar.gz: b8b071a6e6c61422c5cf6e1d8a5a0cc3ba7f29f6
5
5
  SHA512:
6
- metadata.gz: 5519dde4f7bfa2bde049c224933e277ddd8e81bcf128d2f530efeb7f35e3e0bd9738799a60914f753e55a3ac9ad8bf385a2c064331b7b0c33b054b5d8262f828
7
- data.tar.gz: 7f17d7d61411079c6900280eabb6f9f4f92209113c51dd5c9ea8588d17839d03643002ea5b923fd97d482f63fa0fbce4b4baeb8f596b3e2fd84ca61d222fdf29
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 ["-t", "--type"], "TYPE", "Type of repo to create", :required => true
15
- option ["-p", "--path"], "PATH", "Path to repo location", :required => true
16
- option ["-r", "--release"], "RELEASE", "OS version to create", :required => true
17
- option ["-a", "--arch"], "ARCH", "Architecture of repo contents", :required => true
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: prm
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.11
4
+ version: 0.2.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brett Gailey