Sha256: 0a82b4c51036bd46bd5d665a421ab9b629548cd01c7c893b2de805667d232aad
Contents?: true
Size: 732 Bytes
Versions: 9
Compression:
Stored size: 732 Bytes
Contents
# frozen_string_literal: true require 'eac_ruby_utils/core_ext' require 'ehbrs_ruby_utils/executables' module EhbrsRubyUtils module Fs class Iso9660File DEFAULT_EXTNAME = '.iso' common_constructor :path do self.path = path.to_pathname end # @return [Array<String>] def list isoinfo_command('-f').execute!.each_line end # @param command_args [Array<String>] # @return [EacRubyUtils::Envs::Command] def isoinfo_command(*command_args) ::EacRubyUtils::Envs.local.command('isoinfo', '-i', path, *command_args) end # @return [Boolean] def valid? isoinfo_command.execute.fetch(:exit_code).zero? end end end end
Version data entries
9 entries across 9 versions & 1 rubygems