forked from refinery/refinerycms
-
Notifications
You must be signed in to change notification settings - Fork 0
/
edge.rb
45 lines (35 loc) · 1.51 KB
/
edge.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
require 'rbconfig'
gsub_file 'Gemfile', "gem 'jquery-rails'", "gem 'jquery-rails', '~> 2.0.0'"
if File.read("#{destination_root}/Gemfile") !~ /assets.+coffee-rails/m
gem "coffee-rails", :group => :assets
end
# We want to ensure that you have an ExecJS runtime available!
begin
run 'bundle install'
require 'execjs'
::ExecJS::Runtimes.autodetect
rescue
gsub_file 'Gemfile', "# gem 'therubyracer'", "gem 'therubyracer'"
end
append_file 'Gemfile' do
"
gem 'refinerycms', :git => 'git://github.com/refinery/refinerycms.git'
# USER DEFINED
# Specify additional Refinery CMS Engines here (all optional):
gem 'refinerycms-i18n', :git => 'git://github.com/refinery/refinerycms-i18n.git'
gem 'refinerycms-acts-as-indexed', :git => 'git://github.com/refinery/refinerycms-acts-as-indexed.git'
# gem 'refinerycms-blog', :git => 'git://github.com/refinery/refinerycms-blog.git'
# gem 'refinerycms-inquiries', :git => 'git://github.com/refinery/refinerycms-inquiries.git'
# gem 'refinerycms-search', :git => 'git://github.com/refinery/refinerycms-search.git'
# gem 'refinerycms-page-images', :git => 'git://github.com/refinery/refinerycms-page-images.git'
# END USER DEFINED
"
end
run 'bundle install'
rake 'db:create'
generate "refinery:cms --fresh-installation #{ARGV.join(' ')}"
say <<-eos
============================================================================
Your new Refinery CMS application is now running on edge and mounted to /.
============================================================================
eos