Sha256: 2461898ea6e34cdca120af26530c5afaedc0d5ece4b6bae237c00738fd4f450d

Contents?: true

Size: 503 Bytes

Versions: 23

Compression:

Stored size: 503 Bytes

Contents

class Printer::InstallGenerator < Rails::Generators::NamedBase
  source_root File.expand_path('../../../java_pdf', __FILE__)

  def create_cmd_in_bin
    path = `bundle list oxen_printer`.strip
    create_file "bin/printer_cmd.sh", <<PRINTERCMD
#!/bin/sh
# This command was installed by rake generate oxen_printer:install
# and provides the generic printer_cmd to the oxen_printer Gem
java -jar #{path}/lib/java_pdf/barcodeprinter.jar $1 $2
PRINTERCMD
    system 'chmod +x bin/printer_cmd.sh'
  end
end

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
oxen_printer-0.2.4 lib/generators/printer/install_generator.rb
oxen_printer-0.2.1 lib/generators/printer/install_generator.rb
oxen_printer-0.0.3 lib/generators/printer/install_generator.rb