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.4.15 lib/generators/printer/install_generator.rb
oxen_printer-0.4.14 lib/generators/printer/install_generator.rb
oxen_printer-0.4.13 lib/generators/printer/install_generator.rb
oxen_printer-0.4.12 lib/generators/printer/install_generator.rb
oxen_printer-0.4.11 lib/generators/printer/install_generator.rb
oxen_printer-0.4.9 lib/generators/printer/install_generator.rb
oxen_printer-0.4.8 lib/generators/printer/install_generator.rb
oxen_printer-0.4.7 lib/generators/printer/install_generator.rb
oxen_printer-0.4.5 lib/generators/printer/install_generator.rb
oxen_printer-0.4.4 lib/generators/printer/install_generator.rb
oxen_printer-0.4.3 lib/generators/printer/install_generator.rb
oxen_printer-0.4.2 lib/generators/printer/install_generator.rb
oxen_printer-0.4.1 lib/generators/printer/install_generator.rb
oxen_printer-0.3.4 lib/generators/printer/install_generator.rb
oxen_printer-0.3.3 lib/generators/printer/install_generator.rb
oxen_printer-0.3.2 lib/generators/printer/install_generator.rb
oxen_printer-0.3.1 lib/generators/printer/install_generator.rb
oxen_printer-0.3.0 lib/generators/printer/install_generator.rb
oxen_printer-0.2.9 lib/generators/printer/install_generator.rb
oxen_printer-0.2.8 lib/generators/printer/install_generator.rb