Sha256: cbf5e08bbd03bbc5462d31535da80f8a7a9eea877b7baaacdcdbecaeda29d3c4
Contents?: true
Size: 605 Bytes
Versions: 2
Compression:
Stored size: 605 Bytes
Contents
module SpreePrintInvoice module Generators class InstallGenerator < Rails::Generators::Base class_option :auto_run_migrations, type: :boolean, default: true def add_migrations run 'bundle exec rake railties:install:migrations FROM=spree_print_invoice' end def run_migrations if options[:auto_run_migrations] || ['', 'y', 'Y'].include?(ask "Would you like to run the migrations now? [Y/n]") run 'bundle exec rake db:migrate' else puts "Skiping rake db:migrate, don't forget to run it!" end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
spree-print-invoice-2.2.0 | lib/generators/spree_print_invoice/install/install_generator.rb |
spree-print-invoice-2.1.0 | lib/generators/spree_print_invoice/install/install_generator.rb |