Class: CommandLine
- Inherits:
-
Thor
- Object
- Thor
- CommandLine
- Defined in:
- lib/mvn-get/cli.rb
Instance Method Summary collapse
Instance Method Details
#deps(lib_name) ⇒ Object
48 49 50 |
# File 'lib/mvn-get/cli.rb', line 48 def deps(lib_name) repo = check_dependencies(lib_name) end |
#install(lib_name) ⇒ Object
53 54 55 56 57 58 59 60 61 62 63 |
# File 'lib/mvn-get/cli.rb', line 53 def install(lib_name) repo = check_dependencies(ARGV[1]) if repo != nil puts "Start downloading..." deps = [repo, repo.recursive_dependencies].flatten deps.zip(1..deps.size).each{|x, i| puts "\t[#{i}/#{deps.size}] #{x.id}" x.download } end end |