Class: ExtractTtc::Cli
- Inherits:
-
Thor
- Object
- Thor
- ExtractTtc::Cli
- Defined in:
- lib/extract_ttc/cli.rb
Instance Method Summary collapse
Instance Method Details
#extract(file) ⇒ Object
20 21 22 23 |
# File 'lib/extract_ttc/cli.rb', line 20 def extract(file) exit_code = ExtractCommand.new().run(file) exit(exit_code) unless exit_code.zero? end |
#info(file) ⇒ Object
42 43 44 45 |
# File 'lib/extract_ttc/cli.rb', line 42 def info(file) exit_code = InfoCommand.new().run(file) exit(exit_code) unless exit_code.zero? end |
#ls(file) ⇒ Object
31 32 33 34 |
# File 'lib/extract_ttc/cli.rb', line 31 def ls(file) exit_code = ListCommand.new().run(file) exit(exit_code) unless exit_code.zero? end |