OSDN Git Service
(root)
/
osdn-codes
/
image-creator.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Disk size shorthund support.
[osdn-codes/image-creator.git]
/
create-image
diff --git
a/create-image
b/create-image
index
f110622
..
b6fc7f6
100755
(executable)
--- a/
create-image
+++ b/
create-image
@@
-199,6
+199,7
@@
if $0 == __FILE__
if imgdef.kind_of?(Hash)
name = imgdef['name']
(imgdef['dirs'] || {}).each do |path, opts|
+ opts.kind_of?(Hash) or opts = {size: opts}
dirs << SyncDirDef.new({path: path}.merge(opts.keys.map(&:to_sym).zip(opts.values).to_h))
end
else