Sha256: 6cf628505da8839ba40e8cde099a7b81436f10d61ecfba6ef8c8fde40802951f

Contents?: true

Size: 281 Bytes

Versions: 3

Compression:

Stored size: 281 Bytes

Contents

namespace :importmap do
  desc "Setup Importmap for the app"
  task :install do
    previous_location = ENV["LOCATION"]
    ENV["LOCATION"] = File.expand_path("../install/install.rb", __dir__)
    Rake::Task["app:template"].invoke
    ENV["LOCATION"] = previous_location
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
importmap-rails-2.1.0 lib/tasks/importmap_tasks.rake
importmap-rails-2.0.3 lib/tasks/importmap_tasks.rake
importmap-rails-2.0.2 lib/tasks/importmap_tasks.rake