Class: Tacape::Cli

Inherits:
Thor
  • Object
show all
Defined in:
lib/tacape/cli.rb

Class Method Summary collapse

Instance Method Summary collapse

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

Returns:

  • (Boolean)


19
20
21
# File 'lib/tacape/cli.rb', line 19

def self.exit_on_failure?
  true
end

Instance Method Details

#checkObject



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

#updateObject



40
41
42
# File 'lib/tacape/cli.rb', line 40

def update
  update_tools
end

#versionObject



25
26
27
# File 'lib/tacape/cli.rb', line 25

def version
  say "Tacape version #{Version::STRING}"
end