Sha256: 46f86c47b7fc8e3d3d80178baf5ca6ced21b10c7d25a0978e88bb2c8f7d0ef46

Contents?: true

Size: 1.28 KB

Versions: 7

Compression:

Stored size: 1.28 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"
initializer 'browsercms.rb', <<-CODE
Cms.attachment_file_permission = 0640
CODE

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/blank.rb
browsercms-3.1.3 templates/blank.rb
drujensen-browsercms-3.2.0 templates/blank.rb
browsercms-3.1.2 templates/blank.rb
browsercms-3.1.1 templates/blank.rb
browsercms-3.1.0 templates/blank.rb
we5-browsercms-3.1.0 templates/blank.rb