Sha256: dab1bd2fccdfab991a82a8f10367d3ef22d698277eff0e6755e5287cd1162e42

Contents?: true

Size: 1.84 KB

Versions: 30

Compression:

Stored size: 1.84 KB

Contents

require "bard/template/helper"

# Download and install Adva CMS
file "script/test-adva-cms", <<-src
  #!/usr/bin/env ruby
  paths = ARGV.clone
  load 'vendor/adva/script/test'
src
 
file_inject 'config/environment.rb',
  "require File.join(File.dirname(__FILE__), 'boot')",
  "require File.join(File.dirname(__FILE__), '../vendor/adva/engines/adva_cms/boot')"
 
git :submodule => "add -b bard git@git.botandrose.com:adva.git vendor/adva # this might take a bit, grab a coffee meanwhile :)"
git :submodule => "update --init"
inside("vendor/adva") do
  run "git remote add github git://github.com/svenfuchs/adva_cms.git"
  run "git checkout -b #{project_name}/integration"
end
 
rake "adva:install:core -R vendor/adva/engines/adva_cms/lib/tasks"
rake "adva:assets:install"

# Use application layout in CMS
inside "app/views/layouts" do
  run "ln -s application.html.haml default.html.haml"
end

# Install FCKEditor plugin
rake "adva:install plugins=adva_fckeditor"
file "config/initializers/fckeditor.rb", <<-src
Fckeditor.load!
src
run "cp public/javascripts/adva_fckeditor/config.js public/javascripts/fck_config.js"
file_append "public/javascripts/fck_config.js", <<-src
FCKConfig.CustomStyles = {};
FCKConfig.StylesXmlPath = '/stylesheets/fck_styles.xml';

FCKConfig.EditorAreaCSS = '/stylesheets/fck_editor.css';
FCKConfig.BodyClass = '';

FCKConfig.FirefoxSpellChecker = true;
FCKConfig.BrowserContextMenuOnCtrl = true;
FCKConfig.ForcePasteAsPlainText = true;
src
run "cp public/javascripts/adva_fckeditor/fckeditor/fckstyles.xml public/stylesheets/fck_styles.xml"
file "public/stylesheets/fck_editor.css"

# Setup FCKEditor upload connector
run "mkdir public/userfiles"
run "chmod 777 public/userfiles"
file "public/userfiles/.gitignore", ""
file_append ".gitignore", <<-src
public/userfiles/*
!public/userfiles/.gitignore
src

git :add => "."
git :commit => "-m'added adva cms.'"

Version data entries

30 entries across 30 versions & 1 rubygems

Version Path
bard-0.11.1 lib/bard/template/adva.rb
bard-0.11.0 lib/bard/template/adva.rb
bard-0.10.0 lib/bard/template/adva.rb
bard-0.9.14 lib/bard/template/adva.rb
bard-0.9.13 lib/bard/template/adva.rb
bard-0.9.12 lib/bard/template/adva.rb
bard-0.9.11 lib/bard/template/adva.rb
bard-0.9.10 lib/bard/template/adva.rb
bard-0.9.9 lib/bard/template/adva.rb
bard-0.9.8 lib/bard/template/adva.rb