Class: RakeMKV::Binary

Inherits:
Object
  • Object
show all
Defined in:
lib/rakemkv/binary.rb

Constant Summary collapse

WHICH =
"which".freeze

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(command_line_class: Terrapin::CommandLine) ⇒ Binary

Returns a new instance of Binary.



5
6
7
# File 'lib/rakemkv/binary.rb', line 5

def initialize(command_line_class: Terrapin::CommandLine)
  @command_line_class = command_line_class
end

Class Method Details

.installed?Boolean

Returns:

  • (Boolean)


9
10
11
# File 'lib/rakemkv/binary.rb', line 9

def self.installed?
  new.installed?
end

Instance Method Details

#installed?Boolean

Returns:

  • (Boolean)


13
14
15
# File 'lib/rakemkv/binary.rb', line 13

def installed?
  !command_line_class.new(WHICH, makemkv_binary).run.empty?
end