Sha256: 765a3e5617b1b52f77fd3d45ddc43c59f392256313718890886f6f378112beb9

Contents?: true

Size: 1.42 KB

Versions: 9

Compression:

Stored size: 1.42 KB

Contents

#!/bin/env ruby

require File.dirname(__FILE__) + '/../config/boot'
require "#{RAILS_ROOT}/config/environment"
require 'rails_generator'
require 'rails_generator/scripts/generate'

puts "Install and configure restful authentication"
# First time plugin, has to be done this way since it can not be loaded in
# a different way
ARGV = ['install', 'git://github.com/technoweenie/restful-authentication.git']
require 'commands/plugin'
orig_name = $0
$0 = 'generate'
Rails::Generator::Scripts::Generate.new.run(%w(authenticated user sessions))

puts "Install and configure role-requirements"
Commands::Plugin.parse!(['install', 'git://github.com/timcharper/role_requirement.git'])
Rails::Generator::Scripts::Generate.new.run(%w(roles Role User))

if(Rails::VERSION::MAJOR > 2 ||(Rails::VERSION::MAJOR == 2 && Rails::VERSION::MINOR > 2))
  # TODO: Needed only as long as ActiveScaffold depends on it
  puts "Install the render_component plugin for ActiveScaffold (optional since Rails 2.2)"
  Commands::Plugin.parse!(['install', 'git://github.com/lackac/render_component.git', '-r', 'rails-edge'])
end

puts "Install the auto completion plugin"
Commands::Plugin.parse!(['install', 'auto_complete'])

puts "Install the adminstration backend"
Rails::Generator::Scripts::Generate.new.run(%w(talia_admin))

puts "Migrating the database"
system("rake db:migrate")

migration_path = File.join(RAILS_ROOT, 'db', 'migrate')
ActiveRecord::Migrator.migrate(migration_path)

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
talia_core-0.4.12 generators/talia_base/templates/script/setup_talia_backend
talia_core-0.4.11 generators/talia_base/templates/script/setup_talia_backend
talia_core-0.4.10 generators/talia_base/templates/script/setup_talia_backend
talia_core-0.4.9 generators/talia_base/templates/script/setup_talia_backend
talia_core-0.4.8 generators/talia_base/templates/script/setup_talia_backend
talia_core-0.4.7 generators/talia_base/templates/script/setup_talia_backend
talia_core-0.4.6 generators/talia_base/templates/script/setup_talia_backend
talia_core-0.4.5 generators/talia_base/templates/script/setup_talia_backend
talia_core-0.4.4 generators/talia_base/templates/script/setup_talia_backend