Sha256: 00981ab305175695d2cb39cd495e16dfb2caace3b7b4a157c94548ec13dcd0b5

Contents?: true

Size: 1.23 KB

Versions: 7

Compression:

Stored size: 1.23 KB

Contents

# Remove the file on both *unix and Windows
if Gem.win_platform?
  run "del public\\index.html"
else
  run "rm public/index.html"
end

# Loads the version, so we can explicitly set in the generated cms project.
template_root = File.dirname(File.expand_path(template))
require File.join(template_root, '..', 'lib', 'cms', 'version.rb')
gem "browsercms", :version=>Cms::VERSION

generate :jdbc if defined?(JRUBY_VERSION)

if Gem.win_platform?
  puts "        rake  db:create"
  `rake.cmd db:create`
else
  rake "db:create"
end
route "map.routes_for_browser_cms"
generate :browser_cms
environment 'SITE_DOMAIN="localhost:3000"', :env => "development"
environment 'SITE_DOMAIN="localhost:3000"', :env => "test"
environment 'SITE_DOMAIN="localhost:3000"', :env => "production"
environment 'config.action_view.cache_template_loading = false', :env => "production"
environment 'config.action_controller.page_cache_directory = RAILS_ROOT + "/public/cache/"', :env => "production"
generate :browser_cms_demo_site

require File.join(template_root, '..', 'app', 'models', 'templates.rb')
file 'app/views/layouts/templates/default.html.erb', Templates.default_body

if Gem.win_platform?
  puts "        rake  db:migrate"
  `rake.cmd db:migrate`
else
  rake "db:migrate"
end

Version data entries

7 entries across 7 versions & 3 rubygems

Version Path
browsercms-3.1.4 templates/demo.rb
browsercms-3.1.3 templates/demo.rb
drujensen-browsercms-3.2.0 templates/demo.rb
browsercms-3.1.2 templates/demo.rb
browsercms-3.1.1 templates/demo.rb
browsercms-3.1.0 templates/demo.rb
we5-browsercms-3.1.0 templates/demo.rb