Class: Kitabu::Dependency
- Inherits:
-
Object
- Object
- Kitabu::Dependency
- Defined in:
- lib/kitabu/dependency.rb
Class Method Summary collapse
Class Method Details
.calibre? ⇒ Boolean
5 6 7 |
# File 'lib/kitabu/dependency.rb', line 5 def self.calibre? @calibre ||= `which ebook-convert` && $CHILD_STATUS.success? end |
.linux? ⇒ Boolean
13 14 15 |
# File 'lib/kitabu/dependency.rb', line 13 def self.linux? RUBY_PLATFORM.include?("linux") end |
.macos? ⇒ Boolean
17 18 19 |
# File 'lib/kitabu/dependency.rb', line 17 def self.macos? RUBY_PLATFORM.include?("darwin") end |
.prince? ⇒ Boolean
9 10 11 |
# File 'lib/kitabu/dependency.rb', line 9 def self.prince? @prince ||= `which prince` && $CHILD_STATUS.success? end |