Sha256: b6a9de7b6f8afaad204a805749a102d8a7879dfe46773f10c0b7951e2dcada7f
Contents?: true
Size: 843 Bytes
Versions: 44
Compression:
Stored size: 843 Bytes
Contents
#!/usr/bin/env ruby # -*- coding: utf-8 -*- require 'pathname' KAUI_ROOT_PATH = Pathname.new(__FILE__).realpath.dirname.parent SANDBOX_ROOT_PATH = "#{KAUI_ROOT_PATH}/sandbox" require 'fileutils' require 'rails/generators' require 'rails/generators/rails/app/app_generator' $:.unshift("#{KAUI_ROOT_PATH}/lib") require 'kaui/installer/installer' puts "Deleting old sandbox #{SANDBOX_ROOT_PATH}" FileUtils.rm_rf SANDBOX_ROOT_PATH puts 'Creating the new Rails app' ARGV = [SANDBOX_ROOT_PATH, '--skip-bundle'] Rails::Generators::AppGenerator.start puts 'Setting up Kaui' ARGV = [SANDBOX_ROOT_PATH, "--path=#{KAUI_ROOT_PATH}", '--skip-bundle'] KauiCmd::Installer.start FileUtils.rm_f "#{SANDBOX_ROOT_PATH}/public/index.html" puts 'Running migrations' Dir.chdir SANDBOX_ROOT_PATH system 'rake kaui:install:migrations' system 'rake db:migrate'
Version data entries
44 entries across 44 versions & 1 rubygems