Class: CLI
- Inherits:
-
Thor
- Object
- Thor
- CLI
- Defined in:
- lib/teuton-get/cli.rb
Instance Method Summary collapse
- #create_info(testpath) ⇒ Object
- #create_repo ⇒ Object
- #download(testname) ⇒ Object
- #info(test_id) ⇒ Object
- #init ⇒ Object
- #refresh ⇒ Object
- #repos ⇒ Object
- #search(filter) ⇒ Object
- #version ⇒ Object
Instance Method Details
#create_info(testpath) ⇒ Object
24 25 26 |
# File 'lib/teuton-get/cli.rb', line 24 def create_info(testpath) TeutonGet.create_info(testpath) end |
#create_repo ⇒ Object
33 34 35 |
# File 'lib/teuton-get/cli.rb', line 33 def create_repo TeutonGet.create_repo(".") end |
#download(testname) ⇒ Object
90 91 92 93 |
# File 'lib/teuton-get/cli.rb', line 90 def download(testname) puts unless .empty? TeutonGet.download(testname, ) end |
#info(test_id) ⇒ Object
52 53 54 |
# File 'lib/teuton-get/cli.rb', line 52 def info(test_id) TeutonGet.show_info(test_id) end |
#refresh ⇒ Object
71 72 73 |
# File 'lib/teuton-get/cli.rb', line 71 def refresh TeutonGet.refresh end |
#repos ⇒ Object
62 63 64 |
# File 'lib/teuton-get/cli.rb', line 62 def repos TeutonGet.show_repo_list end |
#search(filter) ⇒ Object
80 81 82 |
# File 'lib/teuton-get/cli.rb', line 80 def search(filter) TeutonGet.search(filter) end |
#version ⇒ Object
14 15 16 |
# File 'lib/teuton-get/cli.rb', line 14 def version puts "#{Version::EXECUTABLE} (version #{Version::VERSION})" end |