public
Description: Collective Idea's Awesomeness. A collection of useful Rails bits and pieces.
Clone URL: git://github.com/collectiveidea/awesomeness.git
Click here to lend your support to: awesomeness and make a donation at www.pledgie.com !
bryckbost (author)
Tue Jul 01 11:41:24 -0700 2008
commit  401e63e2d38fbfd590757363acda98dad667b56d
tree    8239d40b4467ea4c7933b92687bf22d1d1269cd2
parent  a50495fef3b41c27d5880c9c3b1caecc181879f4
awesomeness / install.rb
100644 13 lines (8 sloc) 0.402 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
load_tasks = <<-EOF
load_paths.unshift File.expand_path(File.dirname(__FILE__) + '/../vendor/plugins/awesomeness/recipes')
load 'awesomeness'
 
EOF
 
deploy_path = File.join(File.dirname(__FILE__), '..', '..', '..', 'config', 'deploy.rb')
 
content = load_tasks + File.read(deploy_path)
File.open(deploy_path, 'wb') {|file| file.write(content) }
 
puts IO.read(File.join(File.dirname(__FILE__), 'README'))