Class: Tacape::Cli
- Inherits:
-
Thor
- Object
- Thor
- Tacape::Cli
- Defined in:
- lib/tacape/cli.rb
Class Method Summary collapse
Instance Method Summary collapse
- #check ⇒ Object
-
#initialize(*args) ⇒ Cli
constructor
A new instance of Cli.
- #update ⇒ Object
- #version ⇒ Object
Constructor Details
#initialize(*args) ⇒ Cli
Returns a new instance of Cli.
11 12 13 14 15 16 17 |
# File 'lib/tacape/cli.rb', line 11 def initialize(*args) super @current_os=Tacape::Belt.current_os create_folder_structure puts I18n.t('greeting') end |
Class Method Details
.exit_on_failure? ⇒ Boolean
19 20 21 |
# File 'lib/tacape/cli.rb', line 19 def self.exit_on_failure? true end |
Instance Method Details
#check ⇒ Object
31 32 33 34 35 36 |
# File 'lib/tacape/cli.rb', line 31 def check if `which ffmpeg`.include? 'ffmpeg' ffmpeg='' end say "FFMPEG #{ffmpeg}" end |
#update ⇒ Object
40 41 42 |
# File 'lib/tacape/cli.rb', line 40 def update update_tools end |