Sha256: ec31d58d9d9afdb5c056789901e3440b5f54ce0468c17ca4d681fb0f051bfdaf

Contents?: true

Size: 271 Bytes

Versions: 5

Compression:

Stored size: 271 Bytes

Contents

# frozen_string_literal: true

module Epuber
  class Epubcheck
    class << self
      # @param [String] path path to file
      #
      def check(path)
        res = system('epubcheck', path)

        UI.error!('Epubcheck failed') unless res
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
epuber-0.9.3 lib/epuber/epubcheck.rb
epuber-0.9.2 lib/epuber/epubcheck.rb
epuber-0.9.1 lib/epuber/epubcheck.rb
epuber-0.9.0 lib/epuber/epubcheck.rb
epuber-0.8.0 lib/epuber/epubcheck.rb