OSDN Git Service
(root)
/
osdn-codes
/
osdn-cli.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Allow multiple argument to upload.
[osdn-codes/osdn-cli.git]
/
lib
/
osdn
/
cli
/
command
/
frs_upload.rb
diff --git
a/lib/osdn/cli/command/frs_upload.rb
b/lib/osdn/cli/command/frs_upload.rb
index
97c1793
..
ae112c3
100644
(file)
--- a/
lib/osdn/cli/command/frs_upload.rb
+++ b/
lib/osdn/cli/command/frs_upload.rb
@@
-46,7
+46,13
@@
module OSDN; module CLI; module Command
end
end
end
end
- @target_dir = Pathname.new(ARGV.shift || '.')
+ (ARGV.empty? ? ['.'] : ARGV).each do |d|
+ @target_dir = Pathname.new(d)
+ process_target
+ end
+ end
+
+ def process_target
proj_info = api.get_project target_proj # check project existance
vars = load_variables(@target_dir)
proj_info = api.get_project target_proj # check project existance
vars = load_variables(@target_dir)