Class: CLI

Inherits:
Thor
  • Object
show all
Defined in:
lib/teuton-get/cli.rb

Instance Method Summary collapse

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_repoObject



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 options unless options.empty?
  TeutonGet.download(testname, options)
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

#initObject



42
43
44
# File 'lib/teuton-get/cli.rb', line 42

def init
  TeutonGet.init
end

#refreshObject



71
72
73
# File 'lib/teuton-get/cli.rb', line 71

def refresh
  TeutonGet.refresh
end

#reposObject



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

#versionObject



14
15
16
# File 'lib/teuton-get/cli.rb', line 14

def version
  puts "#{Version::EXECUTABLE} (version #{Version::VERSION})"
end