Sha256: 86aaf40380004bab6c0e9b5219f55e3006bce7b52699ec957317dea21924aa13
Contents?: true
Size: 1.08 KB
Versions: 2
Compression:
Stored size: 1.08 KB
Contents
# frozen_string_literal: true require "generators/decidim/app_generator" namespace :decidim do desc "Generates a dummy app for testing in external installations" task :generate_external_test_app do dummy_app_path = File.expand_path(File.join(Dir.pwd, "spec", "decidim_dummy_app")) sh "rm -fR spec/decidim_dummy_app", verbose: false original_folder = Dir.pwd Decidim::Generators::AppGenerator.start( [ dummy_app_path, "--path", "../..", "--recreate_db", "--skip_gemfile", "--demo" ] ) Dir.chdir(original_folder) end desc "Generates a dummy app for trying out external modules" task :generate_external_development_app do dummy_app_path = File.expand_path(File.join(Dir.pwd, "development_app")) sh "rm -fR development_app", verbose: false original_folder = Dir.pwd Decidim::Generators::AppGenerator.start( [ dummy_app_path, "--path", "..", "--recreate_db", "--seed_db", "--demo" ] ) Dir.chdir(original_folder) end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
decidim-dev-0.10.1 | lib/tasks/generators.rake |
decidim-dev-0.10.0 | lib/tasks/generators.rake |