Sha256: b917dbf19b94c8f1aa0aa816e52398876d2bba815612fc5a97cf1ff4d490db7f

Contents?: true

Size: 438 Bytes

Versions: 12

Compression:

Stored size: 438 Bytes

Contents

# frozen_string_literal: true

install_template_path = File.expand_path('../../install/template.rb', __dir__).freeze
bin_path = ENV['BUNDLE_BIN'] || Rails.root.join('bin')

namespace :vite do
  desc 'Install ViteRails in this application'
  task :install do |task|
    prefix = task.name.split(/#|vite:install/).first
    exec "#{ RbConfig.ruby } #{ bin_path }/rails #{ prefix }app:template LOCATION=#{ install_template_path }"
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
vite_rails-1.0.12 lib/tasks/vite/install.rake
vite_rails-1.0.11 lib/tasks/vite/install.rake
vite_rails-1.0.10 lib/tasks/vite/install.rake
vite_rails-1.0.9 lib/tasks/vite/install.rake
vite_rails-1.0.8 lib/tasks/vite/install.rake
vite_rails-1.0.7 lib/tasks/vite/install.rake
vite_rails-1.0.6 lib/tasks/vite/install.rake
vite_rails-1.0.5 lib/tasks/vite/install.rake
vite_rails-1.0.4 lib/tasks/vite/install.rake
vite_rails-1.0.3 lib/tasks/vite/install.rake
vite_rails-1.0.2 lib/tasks/vite/install.rake
vite_rails-1.0.1 lib/tasks/vite/install.rake