Sha256: 44ec69296b8d069790c9fbcf87e7f72b272a38e99fbca73d10028aa5a734ed22

Contents?: true

Size: 587 Bytes

Versions: 6

Compression:

Stored size: 587 Bytes

Contents

$LOAD_PATH.unshift File.dirname(__FILE__)

require 'logger'
require "rjb"
require 'active_support/core_ext'
require 'tempfile'
require 'jasper-command-line/version'
require 'jasper-command-line/command_line'
require 'jasper-command-line/jasper'

module JasperCommandLine
  def self.logger=(log)
    @logger = log
  end

  # Get jasper-command-line logger.
  #
  # @return [Logger]
  def self.logger
    return @logger if @logger
    logger = Logger.new(STDOUT)
    logger.level = Logger::INFO
    @logger = logger
  end

  def self.ghostscript_available?
    !`which gs`.empty?
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
jasper-command-line-0.4.0 lib/jasper-command-line.rb
jasper-command-line-0.3.5 lib/jasper-command-line.rb
jasper-command-line-0.3.4 lib/jasper-command-line.rb
jasper-command-line-0.3.3 lib/jasper-command-line.rb
jasper-command-line-0.3.2 lib/jasper-command-line.rb
jasper-command-line-0.3.1 lib/jasper-command-line.rb