Sha256: 4004c79e72d72367489981fb2aee6246ddce4d872fea32a50a42a08599227400

Contents?: true

Size: 703 Bytes

Versions: 5

Compression:

Stored size: 703 Bytes

Contents

unless defined?(MnoEnterprise::Generators::InstallGenerator)
  require 'generators/mno_enterprise/install/install_generator'
end

require 'generators/mno_enterprise/dummy/dummy_generator'

namespace :mno_enterprise do
  namespace :testing do
    desc "Generate a dummy app for testing"
    task :create_dummy_app do
      require "#{ENV['LIB_NAME']}"

      ENV["RAILS_ENV"] = 'test'

      MnoEnterprise::DummyGenerator.start %W[--quiet --lib_name=#{ENV['LIB_NAME']} --database=#{ENV['DB'].presence || 'sqlite3'}]
      MnoEnterprise::Generators::InstallGenerator.start %w[--quiet --skip-rspec --skip-sprite --skip-factory-girl --skip-application-config --skip-frontend --skip-admin]
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
mno-enterprise-core-3.4.0 lib/mno_enterprise/testing_support/common_rake.rb
mno-enterprise-core-3.3.3 lib/mno_enterprise/testing_support/common_rake.rb
mno-enterprise-core-3.3.2 lib/mno_enterprise/testing_support/common_rake.rb
mno-enterprise-core-3.3.1 lib/mno_enterprise/testing_support/common_rake.rb
mno-enterprise-core-3.3.0 lib/mno_enterprise/testing_support/common_rake.rb