Sha256: b2e678c8a9f4b882397667f46606427f0db256be6a7b3eef936935f24d6cb9c5
Contents?: true
Size: 941 Bytes
Versions: 13
Compression:
Stored size: 941 Bytes
Contents
require 'generators/push_type/dummy/dummy_generator' require 'generators/push_type/install/install_generator' require 'generators/push_type/node/node_generator' require 'generators/push_type/taxonomy/taxonomy_generator' namespace :common do task :test_app, :lib_name, :base_path, :dummy_path, :skip_javascript do |t, args| args.with_defaults lib_name: 'push_type_core', base_path: './', dummy_path: 'test/dummy', skip_javascript: false opts = ["--lib_name=#{ args[:lib_name] }", "--path=#{ args[:dummy_path] }", '--quiet'] opts.push '--skip-javascript' if args[:skip_javascript] PushType::DummyGenerator.start opts Dir.chdir File.join(args[:base_path], args[:dummy_path]) do system 'bundle exec rake db:drop db:create' PushType::InstallGenerator.start ['--quiet'] PushType::NodeGenerator.start ['page', '--quiet'] PushType::TaxonomyGenerator.start ['category', '--quiet'] end end end
Version data entries
13 entries across 13 versions & 1 rubygems