Class: Kscript::KkFfmpegInstallUtils

Inherits:
Base
  • Object
show all
Defined in:
lib/kscript/plugins/kk_ffmpeg_install_utils.rb

Instance Attribute Summary

Attributes inherited from Base

#logger

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Base

#human_output?, inherited, #with_error_handling

Constructor Details

#initialize(*args, **opts) ⇒ KkFfmpegInstallUtils

Returns a new instance of KkFfmpegInstallUtils.



12
13
14
# File 'lib/kscript/plugins/kk_ffmpeg_install_utils.rb', line 12

def initialize(*args, **opts)
  super
end

Class Method Details

.argumentsObject



26
27
28
# File 'lib/kscript/plugins/kk_ffmpeg_install_utils.rb', line 26

def self.arguments
  '[version]'
end

.authorObject



38
39
40
# File 'lib/kscript/plugins/kk_ffmpeg_install_utils.rb', line 38

def self.author
  'kk'
end

.descriptionObject



42
43
44
# File 'lib/kscript/plugins/kk_ffmpeg_install_utils.rb', line 42

def self.description
  'Install and verify FFmpeg on Linux.'
end

.groupObject



34
35
36
# File 'lib/kscript/plugins/kk_ffmpeg_install_utils.rb', line 34

def self.group
  'media'
end

.usageObject



30
31
32
# File 'lib/kscript/plugins/kk_ffmpeg_install_utils.rb', line 30

def self.usage
  "kscript ffmpeg_install 6.0\nkscript ffmpeg_install latest"
end

Instance Method Details

#installObject



22
23
24
# File 'lib/kscript/plugins/kk_ffmpeg_install_utils.rb', line 22

def install
  logger.kinfo('FFmpeg installer executed.')
end

#runObject



16
17
18
19
20
# File 'lib/kscript/plugins/kk_ffmpeg_install_utils.rb', line 16

def run
  with_error_handling do
    install
  end
end