Sha256: 65cdd52a2ec183e43c17ae4f884105c55c4f1aeeafc0e5f4f5855c8467bd3a75
Contents?: true
Size: 655 Bytes
Versions: 6
Compression:
Stored size: 655 Bytes
Contents
install_template_path = File.expand_path("../../install/template.rb", __dir__).freeze bin_path = ENV["BUNDLE_BIN"] || Rails.root.join("bin") namespace :shakapacker do desc "Install Shakapacker in this application" task install: [:check_node, :check_yarn] do |task| Shakapacker::Configuration.installing = true prefix = task.name.split(/#|shakapacker:install/).first if Rails::VERSION::MAJOR >= 5 exec "#{RbConfig.ruby} #{bin_path}/rails #{prefix}app:template LOCATION='#{install_template_path}'" else exec "#{RbConfig.ruby} #{bin_path}/rake #{prefix}rails:template LOCATION='#{install_template_path}'" end end end
Version data entries
6 entries across 6 versions & 1 rubygems