Class: Kscript::KkFfmpegInstallUtils
- Inherits:
-
Base
- Object
- Base
- Kscript::KkFfmpegInstallUtils
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
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
.arguments ⇒ Object
26
27
28
|
# File 'lib/kscript/plugins/kk_ffmpeg_install_utils.rb', line 26
def self.arguments
'[version]'
end
|
.author ⇒ Object
38
39
40
|
# File 'lib/kscript/plugins/kk_ffmpeg_install_utils.rb', line 38
def self.author
'kk'
end
|
.description ⇒ Object
42
43
44
|
# File 'lib/kscript/plugins/kk_ffmpeg_install_utils.rb', line 42
def self.description
'Install and verify FFmpeg on Linux.'
end
|
.group ⇒ Object
34
35
36
|
# File 'lib/kscript/plugins/kk_ffmpeg_install_utils.rb', line 34
def self.group
'media'
end
|
.usage ⇒ Object
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
#install ⇒ Object
22
23
24
|
# File 'lib/kscript/plugins/kk_ffmpeg_install_utils.rb', line 22
def install
logger.kinfo('FFmpeg installer executed.')
end
|
#run ⇒ Object
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
|