debra 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +4 -8
- data/lib/debra/cli.rb +1 -0
- data/lib/debra/execute.rb +6 -1
- data/lib/debra.rb +1 -1
- metadata +2 -2
data/README.md
CHANGED
@@ -12,9 +12,9 @@ Install
|
|
12
12
|
|
13
13
|
$: sudo gem install debra
|
14
14
|
|
15
|
-
Create a
|
15
|
+
Create a Debfile in your projects directory
|
16
16
|
|
17
|
-
#
|
17
|
+
# Debfile
|
18
18
|
Debra do
|
19
19
|
|
20
20
|
# Specify the files to be included (just a Rake::FileList delegate)
|
@@ -56,18 +56,14 @@ Build your file
|
|
56
56
|
-f, --file file Load a specific Debfile
|
57
57
|
--version Show version
|
58
58
|
|
59
|
-
License
|
60
|
-
|
61
|
-
License:
|
62
|
-
|
63
|
-
(GPLv3)
|
64
|
-
|
65
59
|
## Examples
|
66
60
|
|
67
61
|
See the examples directory
|
68
62
|
|
69
63
|
## License
|
70
64
|
|
65
|
+
(GPLv3)
|
66
|
+
|
71
67
|
Copyright (C) 2009 Matt Haynes
|
72
68
|
|
73
69
|
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
|
data/lib/debra/cli.rb
CHANGED
@@ -15,6 +15,7 @@ module Debra
|
|
15
15
|
|
16
16
|
opts.banner = 'Usage: debra [options]'
|
17
17
|
opts.on("-h", "--help", "Show this message") {|h| options.help = h}
|
18
|
+
opts.on("-r", "--revision", "Append a revision to the file, useful if you are doing CI") {|r| options.revision = r}
|
18
19
|
opts.on("-v", "--verbose", "Run verbosely") {|v| options.verbose = v}
|
19
20
|
opts.on("-ffile", "--file file", String, "Load a specific Debfile") {|f| options.file = f}
|
20
21
|
opts.on("--version", "Show version") do
|
data/lib/debra/execute.rb
CHANGED
@@ -46,7 +46,12 @@ module Debra
|
|
46
46
|
end
|
47
47
|
|
48
48
|
def package_name
|
49
|
-
|
49
|
+
if @@options.revision != nil
|
50
|
+
version = @@control[:version] + @@options.revision
|
51
|
+
else
|
52
|
+
version = @@control[:version]
|
53
|
+
end
|
54
|
+
"#{@@control[:package]}-#{version}-#{@@control[:architecture]}.deb"
|
50
55
|
end
|
51
56
|
|
52
57
|
def write(file, str)
|
data/lib/debra.rb
CHANGED